Commit 41fb1fa7 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub

Merge pull request #4668 from ethereum-optimism/bugfix/log-level

op-node: Turn down log level of enode filtering
parents 805a9027 5c9b9ce1
...@@ -216,17 +216,17 @@ func FilterEnodes(log log.Logger, cfg *rollup.Config) func(node *enode.Node) boo ...@@ -216,17 +216,17 @@ func FilterEnodes(log log.Logger, cfg *rollup.Config) func(node *enode.Node) boo
err := node.Load(&dat) err := node.Load(&dat)
// if the entry does not exist, or if it is invalid, then ignore the node // if the entry does not exist, or if it is invalid, then ignore the node
if err != nil { if err != nil {
log.Debug("discovered node record has no opstack info", "node", node.ID(), "err", err) log.Trace("discovered node record has no opstack info", "node", node.ID(), "err", err)
return false return false
} }
// check chain ID matches // check chain ID matches
if cfg.L2ChainID.Uint64() != dat.chainID { if cfg.L2ChainID.Uint64() != dat.chainID {
log.Debug("discovered node record has no matching chain ID", "node", node.ID(), "got", dat.chainID, "expected", cfg.L2ChainID.Uint64()) log.Trace("discovered node record has no matching chain ID", "node", node.ID(), "got", dat.chainID, "expected", cfg.L2ChainID.Uint64())
return false return false
} }
// check version matches // check version matches
if dat.version != 0 { if dat.version != 0 {
log.Debug("discovered node record has no matching version", "node", node.ID(), "got", dat.version, "expected", 0) log.Trace("discovered node record has no matching version", "node", node.ID(), "got", dat.version, "expected", 0)
return false return false
} }
return true return true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment