code: func WriteReceipts(db ethdb.Writer, hash common.Hash, number uint64, receipts types.Receipts) {
  	// Convert the receipts into their storage form and serialize them
  	storageReceipts := make([]*types.ReceiptForStorage, len(receipts))
  	for i, receipt := range receipts {
  		storageReceipts[i] = (*types.ReceiptForStorage)(receipt)
  	}
  	bytes, err := rlp.EncodeToBytes(storageReceipts)
  	if err != nil {
  		log.Crit("Failed to encode block receipts", "err", err)
  	}
  	// Store the flattened receipt slice
  	if err := db.Put(blockReceiptsKey(number, hash), bytes); err != nil {
  		log.Crit("Failed to store block receipts", "err", err)
  	}
  }
docs: // WriteReceipts stores all the transaction receipts belonging to a block.