diff --git a/consensus/beacon/oplegacy.go b/consensus/beacon/oplegacy.go index 4af18d5802..2df7abee33 100644 --- a/consensus/beacon/oplegacy.go +++ b/consensus/beacon/oplegacy.go @@ -8,7 +8,6 @@ import ( "github.com/ethereum/go-ethereum/consensus" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rpc" ) @@ -26,11 +25,8 @@ func (o *OpLegacy) VerifyHeader(chain consensus.ChainHeaderReader, header *types } parent := chain.GetHeader(header.ParentHash, number-1) if parent == nil { - log.Warn("Failed to get parent header", "hash", header.Hash().String(), "number", number, "parentHash", header.ParentHash.String, "parentNumber", number-1, - "fn", "VerifyHeader") - // return consensus.ErrUnknownAncestor + return consensus.ErrUnknownAncestor } - log.Warn("Verified Header", "hash", header.Hash().String(), "number", number, "parentHash", header.ParentHash.String, "parentNumber", number-1, "fn", "VerifyHeader") return o.verifyHeader(chain, header, parent) } @@ -48,10 +44,8 @@ func (o *OpLegacy) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*t } var err error if parent == nil { - log.Warn("Failed to get parent header", "hash", header.Hash().String(), "number", header.Number.Uint64(), "parentHash", header.ParentHash.String(), "parentNumber", header.Number.Uint64()-1, "fn", "VerifyHeaders") - // err = consensus.ErrUnknownAncestor + err = consensus.ErrUnknownAncestor } else { - log.Warn("Verified Header", "hash", header.Hash().String(), "number", header.Number.Uint64(), "parentHash", header.ParentHash.String(), "parentNumber", header.Number.Uint64()-1, "fn", "VerifyHeaders") err = o.verifyHeader(chain, header, parent) } select {