From 37bc7fec649f8765fe478f86e302b522bc34320b Mon Sep 17 00:00:00 2001 From: krish Date: Thu, 18 Apr 2024 11:14:43 +0800 Subject: [PATCH] test: ignore receipts validation --- op-node/sources/receipts.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 }