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
9df505ef
Commit
9df505ef
authored
Jan 31, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nil ptr dereference
parent
5c971c0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
engine_queue.go
op-node/rollup/derive/engine_queue.go
+1
-3
No files found.
op-node/rollup/derive/engine_queue.go
View file @
9df505ef
...
...
@@ -666,10 +666,8 @@ func (eq *EngineQueue) Reset(ctx context.Context, _ eth.L1BlockRef, _ eth.System
// GetUnsafeQueueGap retrieves the current [start, end) range of the gap between the tip of the unsafe priority queue and the unsafe head.
// If there is no gap, the start and end will be 0.
func
(
eq
*
EngineQueue
)
GetUnsafeQueueGap
()
(
start
uint64
,
end
uint64
)
{
first
:=
eq
.
unsafePayloads
.
Peek
()
// If the parent hash of the first unsafe payload does not match the current unsafe head, then there is a gap.
if
first
.
ParentHash
!=
eq
.
unsafeHead
.
Hash
{
if
first
:=
eq
.
unsafePayloads
.
Peek
();
first
!=
nil
&&
first
.
ParentHash
!=
eq
.
unsafeHead
.
Hash
{
// The gap starts at the unsafe head + 1
start
=
eq
.
unsafeHead
.
Number
+
1
// The gap ends at the parent block of the first unsafe payload in the priority queue, but we return the exclusive bound.
...
...
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