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
00950152
Unverified
Commit
00950152
authored
Mar 07, 2024
by
Roberto Bayardo
Committed by
GitHub
Mar 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export ChannelBuilder so we can use it in external analysis scripts (#9784)
parent
1786bce8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
64 deletions
+64
-64
channel.go
op-batcher/batcher/channel.go
+3
-3
channel_builder.go
op-batcher/batcher/channel_builder.go
+32
-32
channel_builder_test.go
op-batcher/batcher/channel_builder_test.go
+29
-29
No files found.
op-batcher/batcher/channel.go
View file @
00950152
...
...
@@ -12,7 +12,7 @@ import (
"github.com/ethereum/go-ethereum/log"
)
// channel is a lightweight wrapper around a
c
hannelBuilder which keeps track of pending
// channel is a lightweight wrapper around a
C
hannelBuilder which keeps track of pending
// and confirmed transactions for a single channel.
type
channel
struct
{
log
log
.
Logger
...
...
@@ -20,7 +20,7 @@ type channel struct {
cfg
ChannelConfig
// pending channel builder
channelBuilder
*
c
hannelBuilder
channelBuilder
*
C
hannelBuilder
// Set of unconfirmed txID -> frame data. For tx resubmission
pendingTransactions
map
[
txID
]
txData
// Set of confirmed txID -> inclusion block. For determining if the channel is timed out
...
...
@@ -35,7 +35,7 @@ type channel struct {
}
func
newChannel
(
log
log
.
Logger
,
metr
metrics
.
Metricer
,
cfg
ChannelConfig
,
rollupCfg
*
rollup
.
Config
)
(
*
channel
,
error
)
{
cb
,
err
:=
n
ewChannelBuilder
(
cfg
,
*
rollupCfg
)
cb
,
err
:=
N
ewChannelBuilder
(
cfg
,
*
rollupCfg
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"creating new channel: %w"
,
err
)
}
...
...
op-batcher/batcher/channel_builder.go
View file @
00950152
This diff is collapsed.
Click to expand it.
op-batcher/batcher/channel_builder_test.go
View file @
00950152
This diff is collapsed.
Click to expand it.
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