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
ffdbcbca
Commit
ffdbcbca
authored
Nov 09, 2022
by
Joshua Gutow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lints in op-node
parent
c53062fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
engine_queue.go
op-node/rollup/derive/engine_queue.go
+1
-1
l1_traversal.go
op-node/rollup/derive/l1_traversal.go
+2
-2
No files found.
op-node/rollup/derive/engine_queue.go
View file @
ffdbcbca
...
...
@@ -511,7 +511,7 @@ func (eq *EngineQueue) Reset(ctx context.Context, _ eth.L1BlockRef, _ eth.System
}
l1Cfg
,
err
:=
eq
.
engine
.
SystemConfigByL2Hash
(
ctx
,
pipelineL2
.
Hash
)
if
err
!=
nil
{
return
NewTemporaryError
(
fmt
.
Errorf
(
"failed to fetch L1 config of L2 block %s: %
v
"
,
pipelineL2
.
ID
(),
err
))
return
NewTemporaryError
(
fmt
.
Errorf
(
"failed to fetch L1 config of L2 block %s: %
w
"
,
pipelineL2
.
ID
(),
err
))
}
eq
.
log
.
Debug
(
"Reset engine queue"
,
"safeHead"
,
safe
,
"unsafe"
,
unsafe
,
"safe_timestamp"
,
safe
.
Time
,
"unsafe_timestamp"
,
unsafe
.
Time
,
"l1Origin"
,
l1Origin
)
eq
.
unsafeHead
=
unsafe
...
...
op-node/rollup/derive/l1_traversal.go
View file @
ffdbcbca
...
...
@@ -73,11 +73,11 @@ func (l1t *L1Traversal) AdvanceL1Block(ctx context.Context) error {
// Parse L1 receipts of the given block and update the L1 system configuration
_
,
receipts
,
err
:=
l1t
.
l1Blocks
.
FetchReceipts
(
ctx
,
nextL1Origin
.
Hash
)
if
err
!=
nil
{
return
NewTemporaryError
(
fmt
.
Errorf
(
"failed to fetch receipts of L1 block %s for L1 sysCfg update: %
v
"
,
origin
,
err
))
return
NewTemporaryError
(
fmt
.
Errorf
(
"failed to fetch receipts of L1 block %s for L1 sysCfg update: %
w
"
,
origin
,
err
))
}
if
err
:=
UpdateSystemConfigWithL1Receipts
(
&
l1t
.
sysCfg
,
receipts
,
l1t
.
cfg
);
err
!=
nil
{
// the sysCfg changes should always be formatted correctly.
return
NewCriticalError
(
fmt
.
Errorf
(
"failed to update L1 sysCfg with receipts from block %s: %
v
"
,
origin
,
err
))
return
NewCriticalError
(
fmt
.
Errorf
(
"failed to update L1 sysCfg with receipts from block %s: %
w
"
,
origin
,
err
))
}
l1t
.
block
=
nextL1Origin
...
...
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