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
351a53e8
Unverified
Commit
351a53e8
authored
May 04, 2023
by
OptimismBot
Committed by
GitHub
May 04, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5620 from ethereum-optimism/felipe/log-level
proxyd/nit: adjust log level
parents
2b56105a
78926c36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
consensus_poller.go
proxyd/consensus_poller.go
+5
-5
No files found.
proxyd/consensus_poller.go
View file @
351a53e8
...
...
@@ -205,7 +205,7 @@ func NewConsensusPoller(bg *BackendGroup, opts ...ConsensusOpt) *ConsensusPoller
func
(
cp
*
ConsensusPoller
)
UpdateBackend
(
ctx
context
.
Context
,
be
*
Backend
)
{
bs
:=
cp
.
backendState
[
be
]
if
time
.
Now
()
.
Before
(
bs
.
bannedUntil
)
{
log
.
Warn
(
"skipping backend banned"
,
"backend"
,
be
.
Name
,
"bannedUntil"
,
bs
.
bannedUntil
)
log
.
Debug
(
"skipping backend banned"
,
"backend"
,
be
.
Name
,
"bannedUntil"
,
bs
.
bannedUntil
)
return
}
...
...
@@ -246,7 +246,7 @@ func (cp *ConsensusPoller) UpdateBackend(ctx context.Context, be *Backend) {
if
changed
{
RecordBackendLatestBlock
(
be
,
latestBlockNumber
)
log
.
Info
(
"backend state updated"
,
"name"
,
be
.
Name
,
"state"
,
bs
)
log
.
Debug
(
"backend state updated"
,
"name"
,
be
.
Name
,
"state"
,
bs
)
}
}
...
...
@@ -288,7 +288,7 @@ func (cp *ConsensusPoller) UpdateBackendGroupConsensus(ctx context.Context) {
filteredBackendsNames
:=
make
([]
string
,
0
,
len
(
cp
.
backendGroup
.
Backends
))
if
lowestBlock
>
currentConsensusBlockNumber
{
log
.
Info
(
"validating consensus on b
lock"
,
lowestBlock
)
log
.
Debug
(
"validating consensus on block"
,
"lowestB
lock"
,
lowestBlock
)
}
broken
:=
false
...
...
@@ -341,7 +341,7 @@ func (cp *ConsensusPoller) UpdateBackendGroupConsensus(ctx context.Context) {
// walk one block behind and try again
proposedBlock
-=
1
proposedBlockHash
=
""
log
.
Info
(
"no consensus, now trying"
,
"block:"
,
proposedBlock
)
log
.
Debug
(
"no consensus, now trying"
,
"block:"
,
proposedBlock
)
}
}
...
...
@@ -356,7 +356,7 @@ func (cp *ConsensusPoller) UpdateBackendGroupConsensus(ctx context.Context) {
cp
.
consensusGroup
=
consensusBackends
cp
.
consensusGroupMux
.
Unlock
()
log
.
Info
(
"group state"
,
"proposedBlock"
,
proposedBlock
,
"consensusBackends"
,
strings
.
Join
(
consensusBackendsNames
,
", "
),
"filteredBackends"
,
strings
.
Join
(
filteredBackendsNames
,
", "
))
log
.
Debug
(
"group state"
,
"proposedBlock"
,
proposedBlock
,
"consensusBackends"
,
strings
.
Join
(
consensusBackendsNames
,
", "
),
"filteredBackends"
,
strings
.
Join
(
filteredBackendsNames
,
", "
))
}
// Unban remove any bans from the backends
...
...
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