Skip to content

Commit

Permalink
Revert "fix: bubbling up the error when DeriveField() fails (bnb-chai…
Browse files Browse the repository at this point in the history
…n#18)"

This reverts commit 1f69107.
  • Loading branch information
owen-reorg committed Jan 5, 2024
1 parent 69afb85 commit 7a606b7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a606b7

Please sign in to comment.