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
06d4d206
Unverified
Commit
06d4d206
authored
Jun 10, 2024
by
zhiqiangxu
Committed by
GitHub
Jun 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace original "engine queue" with "ResetEngine" (#10776)
parent
8e154e75
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
attributes_queue.go
op-node/rollup/derive/attributes_queue.go
+1
-1
iface.go
op-node/rollup/derive/iface.go
+1
-1
pipeline.go
op-node/rollup/derive/pipeline.go
+3
-3
No files found.
op-node/rollup/derive/attributes_queue.go
View file @
06d4d206
...
@@ -12,7 +12,7 @@ import (
...
@@ -12,7 +12,7 @@ import (
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
)
// The attributes queue sits
in between the batch queue and the engine queue
// The attributes queue sits
after the batch queue.
// It transforms batches into payload attributes. The outputted payload
// It transforms batches into payload attributes. The outputted payload
// attributes cannot be buffered because each batch->attributes transformation
// attributes cannot be buffered because each batch->attributes transformation
// pulls in data about the current L2 safe head.
// pulls in data about the current L2 safe head.
...
...
op-node/rollup/derive/iface.go
View file @
06d4d206
...
@@ -15,7 +15,7 @@ import (
...
@@ -15,7 +15,7 @@ import (
// The l1Block specified is the first L1 block that includes sufficient information to derive the new safe head
// The l1Block specified is the first L1 block that includes sufficient information to derive the new safe head
type
SafeHeadListener
interface
{
type
SafeHeadListener
interface
{
// Enabled reports if this safe head listener is actively using the posted data. This allows the
engine queu
e to
// Enabled reports if this safe head listener is actively using the posted data. This allows the
ResetEngin
e to
// optionally skip making calls that may be expensive to prepare.
// optionally skip making calls that may be expensive to prepare.
// Callbacks may still be made if Enabled returns false but are not guaranteed.
// Callbacks may still be made if Enabled returns false but are not guaranteed.
Enabled
()
bool
Enabled
()
bool
...
...
op-node/rollup/derive/pipeline.go
View file @
06d4d206
...
@@ -79,9 +79,9 @@ func NewDerivationPipeline(log log.Logger, rollupCfg *rollup.Config, l1Fetcher L
...
@@ -79,9 +79,9 @@ func NewDerivationPipeline(log log.Logger, rollupCfg *rollup.Config, l1Fetcher L
attrBuilder
:=
NewFetchingAttributesBuilder
(
rollupCfg
,
l1Fetcher
,
l2Source
)
attrBuilder
:=
NewFetchingAttributesBuilder
(
rollupCfg
,
l1Fetcher
,
l2Source
)
attributesQueue
:=
NewAttributesQueue
(
log
,
rollupCfg
,
attrBuilder
,
batchQueue
)
attributesQueue
:=
NewAttributesQueue
(
log
,
rollupCfg
,
attrBuilder
,
batchQueue
)
// Reset from
engine queu
e then up from L1 Traversal. The stages do not talk to each other during
// Reset from
ResetEngin
e then up from L1 Traversal. The stages do not talk to each other during
// the
reset, but after the engine queu
e, this is the order in which the stages could talk to each other.
// the
ResetEngine, but after the ResetEngin
e, this is the order in which the stages could talk to each other.
// Note: The
engine queue stag
e is the only reset that can fail.
// Note: The
ResetEngin
e is the only reset that can fail.
stages
:=
[]
ResettableStage
{
l1Traversal
,
l1Src
,
plasma
,
frameQueue
,
bank
,
chInReader
,
batchQueue
,
attributesQueue
}
stages
:=
[]
ResettableStage
{
l1Traversal
,
l1Src
,
plasma
,
frameQueue
,
bank
,
chInReader
,
batchQueue
,
attributesQueue
}
return
&
DerivationPipeline
{
return
&
DerivationPipeline
{
...
...
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