Skip to content

Commit

Permalink
Remove extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
trianglesphere committed Jan 30, 2024
1 parent c639372 commit ea63a6b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions consensus/beacon/oplegacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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)
}

Expand All @@ -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 {
Expand Down

0 comments on commit ea63a6b

Please sign in to comment.