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
e7758b25
Unverified
Commit
e7758b25
authored
Sep 17, 2024
by
Sebastian Stammler
Committed by
GitHub
Sep 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-batcher: Add String methods to txRef (#11904)
parent
4490fa8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
driver.go
op-batcher/batcher/driver.go
+19
-1
No files found.
op-batcher/batcher/driver.go
View file @
e7758b25
...
...
@@ -42,6 +42,25 @@ type txRef struct {
isBlob
bool
}
func
(
r
txRef
)
String
()
string
{
return
r
.
string
(
func
(
id
txID
)
string
{
return
id
.
String
()
})
}
func
(
r
txRef
)
TerminalString
()
string
{
return
r
.
string
(
func
(
id
txID
)
string
{
return
id
.
TerminalString
()
})
}
func
(
r
txRef
)
string
(
txIDStringer
func
(
txID
)
string
)
string
{
if
r
.
isCancel
{
if
r
.
isBlob
{
return
"blob-cancellation"
}
else
{
return
"calldata-cancellation"
}
}
return
txIDStringer
(
r
.
id
)
}
type
L1Client
interface
{
HeaderByNumber
(
ctx
context
.
Context
,
number
*
big
.
Int
)
(
*
types
.
Header
,
error
)
NonceAt
(
ctx
context
.
Context
,
account
common
.
Address
,
blockNumber
*
big
.
Int
)
(
uint64
,
error
)
...
...
@@ -455,7 +474,6 @@ func (l *BatchSubmitter) publishStateToL1(queue *txmgr.Queue[txRef], receiptsCh
return
}
err
:=
l
.
publishTxToL1
(
l
.
killCtx
,
queue
,
receiptsCh
,
daGroup
)
if
err
!=
nil
{
if
err
!=
io
.
EOF
{
l
.
Log
.
Error
(
"Error publishing tx to l1"
,
"err"
,
err
)
...
...
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