Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
41fb1fa7
Unverified
Commit
41fb1fa7
authored
Jan 11, 2023
by
mergify[bot]
Committed by
GitHub
Jan 11, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4668 from ethereum-optimism/bugfix/log-level
op-node: Turn down log level of enode filtering
parents
805a9027
5c9b9ce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
discovery.go
op-node/p2p/discovery.go
+3
-3
No files found.
op-node/p2p/discovery.go
View file @
41fb1fa7
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment