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
a9da94ef
Unverified
Commit
a9da94ef
authored
Jan 21, 2022
by
Mark Tyneway
Committed by
GitHub
Jan 21, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2040 from ethereum-optimism/fix/bn-monotonicity-log
l2geth: fix monotonicity logging bug
parents
86a70953
c7569a16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
warm-ears-float.md
.changeset/warm-ears-float.md
+5
-0
sync_service.go
l2geth/rollup/sync_service.go
+4
-3
No files found.
.changeset/warm-ears-float.md
0 → 100644
View file @
a9da94ef
---
'
@eth-optimism/l2geth'
:
patch
---
Fix blocknumber monotonicity logging bug
l2geth/rollup/sync_service.go
View file @
a9da94ef
...
...
@@ -838,12 +838,13 @@ func (s *SyncService) applyTransactionToTip(tx *types.Transaction) error {
// Set the L1 blocknumber
if
l1BlockNumber
==
nil
{
tx
.
SetL1BlockNumber
(
bn
)
}
else
if
l1BlockNumber
.
Uint64
()
>
s
.
GetLatestL1BlockNumber
()
{
}
else
if
l1BlockNumber
.
Uint64
()
>
bn
{
s
.
SetLatestL1BlockNumber
(
l1BlockNumber
.
Uint64
())
}
else
{
}
else
if
l1BlockNumber
.
Uint64
()
<
bn
{
// l1BlockNumber < latest l1BlockNumber
// indicates an error
log
.
Error
(
"Blocknumber monotonicity violation"
,
"hash"
,
tx
.
Hash
()
.
Hex
())
log
.
Error
(
"Blocknumber monotonicity violation"
,
"hash"
,
tx
.
Hash
()
.
Hex
(),
"new"
,
l1BlockNumber
.
Uint64
(),
"old"
,
bn
)
}
// Store the latest timestamp value
...
...
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