From 7a606b770370d59df5f06d4fb62852102fb3406b Mon Sep 17 00:00:00 2001 From: Owen Hu <103096885+owen-reorg@users.noreply.github.com> Date: Fri, 5 Jan 2024 14:55:37 +0800 Subject: [PATCH] Revert "fix: bubbling up the error when DeriveField() fails (#18)" This reverts commit 1f69107650d3b74055cb600107cd940c0412ef96. --- core/blockchain.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index ed2e451979..9808e48b8a 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1874,14 +1874,11 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals, setHead bool) proctime := time.Since(start) // processing + validation // pre-cache the block and receipts, so that it can be retrieved quickly by rcp + bc.CacheBlock(block.Hash(), block) err = types.Receipts(receipts).DeriveFields(bc.chainConfig, block.Hash(), block.NumberU64(), block.Time(), block.BaseFee(), block.Transactions()) if err != nil { log.Warn("Failed to derive receipt fields", "block", block.Hash(), "err", err) - bc.reportBlock(block, receipts, err) - close(interruptCh) - return it.index, err } - bc.CacheBlock(block.Hash(), block) bc.CacheReceipts(block.Hash(), receipts) // Update the metrics touched during block processing and validation