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
72737362
Commit
72737362
authored
Feb 01, 2023
by
Sebastian Stammler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-batcher: Fix BatchSubmitter after rebase
parent
5960a01f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
driver.go
op-batcher/batcher/driver.go
+4
-2
No files found.
op-batcher/batcher/driver.go
View file @
72737362
...
@@ -13,6 +13,8 @@ import (
...
@@ -13,6 +13,8 @@ import (
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/eth"
opcrypto
"github.com/ethereum-optimism/optimism/op-service/crypto"
opcrypto
"github.com/ethereum-optimism/optimism/op-service/crypto"
"github.com/ethereum-optimism/optimism/op-service/txmgr"
"github.com/ethereum-optimism/optimism/op-service/txmgr"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/log"
)
)
...
@@ -310,7 +312,7 @@ func (l *BatchSubmitter) recordConfirmedTx(id txID, receipt *types.Receipt) {
...
@@ -310,7 +312,7 @@ func (l *BatchSubmitter) recordConfirmedTx(id txID, receipt *types.Receipt) {
func
(
l
*
BatchSubmitter
)
l1Tip
(
ctx
context
.
Context
)
(
eth
.
L1BlockRef
,
error
)
{
func
(
l
*
BatchSubmitter
)
l1Tip
(
ctx
context
.
Context
)
(
eth
.
L1BlockRef
,
error
)
{
tctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
networkTimeout
)
tctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
networkTimeout
)
defer
cancel
()
defer
cancel
()
head
,
err
:=
l
.
cfg
.
L1Client
.
HeaderByNumber
(
tctx
,
nil
)
head
,
err
:=
l
.
L1Client
.
HeaderByNumber
(
tctx
,
nil
)
if
err
!=
nil
{
if
err
!=
nil
{
return
eth
.
L1BlockRef
{},
fmt
.
Errorf
(
"getting latest L1 block: %w"
,
err
)
return
eth
.
L1BlockRef
{},
fmt
.
Errorf
(
"getting latest L1 block: %w"
,
err
)
}
}
...
@@ -342,7 +344,7 @@ func (l *BatchSubmitter) l1BlockRefByReceipt(ctx context.Context, rec *types.Rec
...
@@ -342,7 +344,7 @@ func (l *BatchSubmitter) l1BlockRefByReceipt(ctx context.Context, rec *types.Rec
func
(
l
*
BatchSubmitter
)
l1BlockRefByHash
(
ctx
context
.
Context
,
hash
common
.
Hash
)
(
eth
.
L1BlockRef
,
error
)
{
func
(
l
*
BatchSubmitter
)
l1BlockRefByHash
(
ctx
context
.
Context
,
hash
common
.
Hash
)
(
eth
.
L1BlockRef
,
error
)
{
tctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
networkTimeout
)
tctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
networkTimeout
)
defer
cancel
()
defer
cancel
()
head
,
err
:=
l
.
cfg
.
L1Client
.
HeaderByHash
(
tctx
,
hash
)
head
,
err
:=
l
.
L1Client
.
HeaderByHash
(
tctx
,
hash
)
if
err
!=
nil
{
if
err
!=
nil
{
return
eth
.
L1BlockRef
{},
fmt
.
Errorf
(
"getting L1 block %v: %w"
,
hash
,
err
)
return
eth
.
L1BlockRef
{},
fmt
.
Errorf
(
"getting L1 block %v: %w"
,
hash
,
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