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
b7fd37ee
Unverified
Commit
b7fd37ee
authored
Jul 02, 2023
by
OptimismBot
Committed by
GitHub
Jul 02, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6165 from pengin7384/typo_in_comment
fix: typo in comment
parents
8ddf2cd4
8d2b2ec5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
7 deletions
+6
-7
channel_bank.go
op-node/rollup/derive/channel_bank.go
+1
-1
channel_in_reader.go
op-node/rollup/derive/channel_in_reader.go
+1
-2
engine_queue.go
op-node/rollup/derive/engine_queue.go
+1
-1
l1_retrieval.go
op-node/rollup/derive/l1_retrieval.go
+1
-1
l2block_util.go
op-node/rollup/derive/l2block_util.go
+1
-1
types.go
op-node/rollup/types.go
+1
-1
No files found.
op-node/rollup/derive/channel_bank.go
View file @
b7fd37ee
...
...
@@ -74,7 +74,7 @@ func (cb *ChannelBank) prune() {
}
}
// Ingest
Data
adds new L1 data to the channel bank.
// Ingest
Frame
adds new L1 data to the channel bank.
// Read() should be called repeatedly first, until everything has been read, before adding new data.
func
(
cb
*
ChannelBank
)
IngestFrame
(
f
Frame
)
{
origin
:=
cb
.
Origin
()
...
...
op-node/rollup/derive/channel_in_reader.go
View file @
b7fd37ee
...
...
@@ -10,11 +10,10 @@ import (
"github.com/ethereum-optimism/optimism/op-node/eth"
)
// Channel
In
Reader reads a batch from the channel
// Channel
In
Reader reads a batch from the channel
// This does decompression and limits the max RLP size
// This is a pure function from the channel, but each channel (or channel fragment)
// must be tagged with an L1 inclusion block to be passed to the batch queue.
type
ChannelInReader
struct
{
log
log
.
Logger
...
...
op-node/rollup/derive/engine_queue.go
View file @
b7fd37ee
...
...
@@ -682,7 +682,7 @@ func (eq *EngineQueue) resetBuildingState() {
eq
.
buildingSafe
=
false
}
// Reset
Step W
alks the L2 chain backwards until it finds an L2 block whose L1 origin is canonical.
// Reset
w
alks the L2 chain backwards until it finds an L2 block whose L1 origin is canonical.
// The unsafe head is set to the head of the L2 chain, unless the existing safe head is not canonical.
func
(
eq
*
EngineQueue
)
Reset
(
ctx
context
.
Context
,
_
eth
.
L1BlockRef
,
_
eth
.
SystemConfig
)
error
{
result
,
err
:=
sync
.
FindL2Heads
(
ctx
,
eq
.
cfg
,
eq
.
l1Fetcher
,
eq
.
engine
,
eq
.
log
)
...
...
op-node/rollup/derive/l1_retrieval.go
View file @
b7fd37ee
...
...
@@ -69,7 +69,7 @@ func (l1r *L1Retrieval) NextData(ctx context.Context) ([]byte, error) {
}
}
// Reset
Step
re-initializes the L1 Retrieval stage to block of it's `next` progress.
// Reset re-initializes the L1 Retrieval stage to block of it's `next` progress.
// Note that we open up the `l1r.datas` here because it is requires to maintain the
// internal invariants that later propagate up the derivation pipeline.
func
(
l1r
*
L1Retrieval
)
Reset
(
ctx
context
.
Context
,
base
eth
.
L1BlockRef
,
sysCfg
eth
.
SystemConfig
)
error
{
...
...
op-node/rollup/derive/l2block_util.go
View file @
b7fd37ee
...
...
@@ -23,7 +23,7 @@ type L2BlockRefSource interface {
Transactions
()
types
.
Transactions
}
//
Payload
ToBlockRef extracts the essential L2BlockRef information from an L2
//
L2Block
ToBlockRef extracts the essential L2BlockRef information from an L2
// block ref source, falling back to genesis information if necessary.
func
L2BlockToBlockRef
(
block
L2BlockRefSource
,
genesis
*
rollup
.
Genesis
)
(
eth
.
L2BlockRef
,
error
)
{
hash
,
number
:=
block
.
Hash
(),
block
.
NumberU64
()
...
...
op-node/rollup/types.go
View file @
b7fd37ee
...
...
@@ -286,7 +286,7 @@ func (c *Config) Description(l2Chains map[string]string) string {
return
banner
}
// Description outputs a banner describing the important parts of rollup configuration in a log format.
//
Log
Description outputs a banner describing the important parts of rollup configuration in a log format.
// Optionally provide a mapping of L2 chain IDs to network names to label the L2 chain with if not unknown.
// The config should be config.Check()-ed before creating a description.
func
(
c
*
Config
)
LogDescription
(
log
log
.
Logger
,
l2Chains
map
[
string
]
string
)
{
...
...
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