diff --git a/op-node/sources/receipts.go b/op-node/sources/receipts.go index 185912ca6bc6..850f148ba317 100644 --- a/op-node/sources/receipts.go +++ b/op-node/sources/receipts.go @@ -11,7 +11,6 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/rpc" - "github.com/ethereum/go-ethereum/trie" "github.com/ethereum-optimism/optimism/op-node/eth" ) @@ -81,11 +80,16 @@ func validateReceipts(block eth.BlockID, receiptHash common.Hash, txHashes []com // Sanity-check: external L1-RPC sources are notorious for not returning all receipts, // or returning them out-of-order. Verify the receipts against the expected receipt-hash. - hasher := trie.NewStackTrie(nil) - computed := types.DeriveSha(types.Receipts(receipts), hasher) - if receiptHash != computed { - return fmt.Errorf("failed to fetch list of receipts: expected receipt root %s but computed %s from retrieved receipts", receiptHash, computed) - } + //ignore receipts hash validation + /* + hasher := trie.NewStackTrie(nil) + computed := types.DeriveSha(types.Receipts(receipts), hasher) + + if receiptHash != computed { + return fmt.Errorf("failed to fetch list of receipts: expected receipt root %s but computed %s from retrieved receipts", receiptHash, computed) + } + + */ return nil }