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
d37c7ff5
Unverified
Commit
d37c7ff5
authored
Aug 04, 2022
by
Joshua Gutow
Committed by
GitHub
Aug 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-node: More reset & pipeline logging (#3178)
parent
565bfc4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
batch_queue.go
op-node/rollup/derive/batch_queue.go
+2
-1
engine_queue.go
op-node/rollup/derive/engine_queue.go
+1
-0
No files found.
op-node/rollup/derive/batch_queue.go
View file @
d37c7ff5
...
...
@@ -79,6 +79,7 @@ func (bq *BatchQueue) Step(ctx context.Context, outer Progress) error {
for
_
,
batch
:=
range
batches
{
if
uint64
(
batch
.
Timestamp
)
<=
bq
.
next
.
SafeL2Head
()
.
Time
{
bq
.
log
.
Debug
(
"Dropping batch"
,
"SafeL2Head"
,
bq
.
next
.
SafeL2Head
(),
"SafeL2Head_Time"
,
bq
.
next
.
SafeL2Head
()
.
Time
,
"batch_timestamp"
,
batch
.
Timestamp
)
// drop attributes if we are still progressing towards the next stage
// (after a reset rolled us back a full sequence window)
continue
...
...
@@ -201,7 +202,7 @@ func (bq *BatchQueue) deriveBatches(ctx context.Context, l2SafeHead eth.L2BlockR
bq
.
log
.
Trace
(
"found batches"
,
"len"
,
len
(
batches
))
// Filter + Fill batches
batches
=
FilterBatches
(
bq
.
log
,
bq
.
config
,
epoch
.
ID
(),
minL2Time
,
maxL2Time
,
batches
)
bq
.
log
.
Trace
(
"filtered batches"
,
"len"
,
len
(
batches
),
"l1Origin"
,
bq
.
l1Blocks
[
0
],
"nextL1Block"
,
bq
.
l1Blocks
[
1
])
bq
.
log
.
Trace
(
"filtered batches"
,
"len"
,
len
(
batches
),
"l1Origin"
,
bq
.
l1Blocks
[
0
],
"nextL1Block"
,
bq
.
l1Blocks
[
1
]
,
"minL2Time"
,
minL2Time
,
"maxL2Time"
,
maxL2Time
)
batches
=
FillMissingBatches
(
batches
,
epoch
.
ID
(),
bq
.
config
.
BlockTime
,
minL2Time
,
nextL1BlockTime
)
bq
.
log
.
Trace
(
"added missing batches"
,
"len"
,
len
(
batches
),
"l1OriginTime"
,
l1OriginTime
,
"nextL1BlockTime"
,
nextL1BlockTime
)
// Advance an epoch after filling all batches.
...
...
op-node/rollup/derive/engine_queue.go
View file @
d37c7ff5
...
...
@@ -286,6 +286,7 @@ func (eq *EngineQueue) ResetStep(ctx context.Context, l1Fetcher L1Fetcher) error
return
fmt
.
Errorf
(
"cannot reset block derivation to start at L2 block %s with time %d older than its L1 origin %s with time %d, time invariant is broken"
,
safe
,
safe
.
Time
,
l1Origin
,
l1Origin
.
Time
)
}
eq
.
log
.
Debug
(
"Reset engine queue"
,
"safeHead"
,
safe
,
"unsafe"
,
unsafe
,
"safe_timestamp"
,
safe
.
Time
,
"unsafe_timestamp"
,
unsafe
.
Time
,
"l1Origin"
,
l1Origin
)
eq
.
unsafeHead
=
unsafe
eq
.
safeHead
=
safe
eq
.
progress
=
Progress
{
...
...
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