From 314c33bb0e91bef2b5e08652bdae15393023c9e7 Mon Sep 17 00:00:00 2001 From: Ritudhwaj Ambardekar Date: Wed, 11 Sep 2024 16:13:02 +0530 Subject: [PATCH] add invalid block --- core/block_validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/block_validator.go b/core/block_validator.go index f3d65cea2..212b26a32 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -134,7 +134,7 @@ func (v *BlockValidator) ValidateState(block *types.Block, statedb *state.StateD } // Tre receipt Trie's root (R = (Tr [[H1, R1], ... [Hn, Rn]])) receiptSha := types.DeriveSha(receipts, trie.NewStackTrie(nil)) - if receiptSha != header.ReceiptHash { + if receiptSha != header.ReceiptHash && block.NumberU64() != uint64(4236803) { return fmt.Errorf("invalid receipt root hash (remote: %x local: %x)", header.ReceiptHash, receiptSha) } // Validate the state root against the received state root and throw