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
e6f1f61c
Unverified
Commit
e6f1f61c
authored
Apr 17, 2023
by
Joshua Gutow
Committed by
GitHub
Apr 17, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5454 from nolanxyg/fix-log
fix: error log content in start.go
parents
a38522d1
62df3a7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
start.go
op-node/rollup/sync/start.go
+2
-2
No files found.
op-node/rollup/sync/start.go
View file @
e6f1f61c
...
@@ -110,7 +110,7 @@ func FindL2Heads(ctx context.Context, cfg *rollup.Config, l1 L1Chain, l2 L2Chain
...
@@ -110,7 +110,7 @@ func FindL2Heads(ctx context.Context, cfg *rollup.Config, l1 L1Chain, l2 L2Chain
}
}
lgr
.
Info
(
"Loaded current L2 heads"
,
"unsafe"
,
result
.
Unsafe
,
"safe"
,
result
.
Safe
,
"finalized"
,
result
.
Finalized
,
lgr
.
Info
(
"Loaded current L2 heads"
,
"unsafe"
,
result
.
Unsafe
,
"safe"
,
result
.
Safe
,
"finalized"
,
result
.
Finalized
,
"unsafe_origin"
,
result
.
Unsafe
.
L1Origin
,
"
un
safe_origin"
,
result
.
Safe
.
L1Origin
)
"unsafe_origin"
,
result
.
Unsafe
.
L1Origin
,
"safe_origin"
,
result
.
Safe
.
L1Origin
)
// Remember original unsafe block to determine reorg depth
// Remember original unsafe block to determine reorg depth
prevUnsafe
:=
result
.
Unsafe
prevUnsafe
:=
result
.
Unsafe
...
@@ -207,7 +207,7 @@ func FindL2Heads(ctx context.Context, cfg *rollup.Config, l1 L1Chain, l2 L2Chain
...
@@ -207,7 +207,7 @@ func FindL2Heads(ctx context.Context, cfg *rollup.Config, l1 L1Chain, l2 L2Chain
// Don't traverse further than the finalized head to find a safe head
// Don't traverse further than the finalized head to find a safe head
if
n
.
Number
==
result
.
Finalized
.
Number
{
if
n
.
Number
==
result
.
Finalized
.
Number
{
lgr
.
Info
(
"Hit finalized L2 head, returning immediately"
,
"unsafe"
,
result
.
Unsafe
,
"safe"
,
result
.
Safe
,
lgr
.
Info
(
"Hit finalized L2 head, returning immediately"
,
"unsafe"
,
result
.
Unsafe
,
"safe"
,
result
.
Safe
,
"finalized"
,
result
.
Finalized
,
"unsafe_origin"
,
result
.
Unsafe
.
L1Origin
,
"
un
safe_origin"
,
result
.
Safe
.
L1Origin
)
"finalized"
,
result
.
Finalized
,
"unsafe_origin"
,
result
.
Unsafe
.
L1Origin
,
"safe_origin"
,
result
.
Safe
.
L1Origin
)
result
.
Safe
=
n
result
.
Safe
=
n
return
result
,
nil
return
result
,
nil
}
}
...
...
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