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
c1349971
Commit
c1349971
authored
Feb 02, 2023
by
Sebastian Stammler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-batcher: Remove now-unused BatchSubmitter methods
parent
a2189aab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
driver.go
op-batcher/batcher/driver.go
+0
-32
No files found.
op-batcher/batcher/driver.go
View file @
c1349971
...
@@ -13,7 +13,6 @@ import (
...
@@ -13,7 +13,6 @@ 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/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/log"
)
)
...
@@ -304,34 +303,3 @@ func (l *BatchSubmitter) l1Tip(ctx context.Context) (eth.L1BlockRef, error) {
...
@@ -304,34 +303,3 @@ func (l *BatchSubmitter) l1Tip(ctx context.Context) (eth.L1BlockRef, error) {
l
.
lastKnownL1Time
=
head
.
Time
l
.
lastKnownL1Time
=
head
.
Time
return
eth
.
L1BlockRefFromHeader
(
head
),
nil
return
eth
.
L1BlockRefFromHeader
(
head
),
nil
}
}
// l1BlockRefByReceipt gets the L1BlockRef for the passed receipt. The passed
// context is assumed to be a lifetime context, so it is internally wrapped with
// a network timeout.
//
// If there's an error getting the block header, the returned block ref will
// still have the block hash and number fields set.
func
(
l
*
BatchSubmitter
)
l1BlockRefByReceipt
(
ctx
context
.
Context
,
rec
*
types
.
Receipt
)
(
eth
.
L1BlockRef
,
error
)
{
l1ref
,
err
:=
l
.
l1BlockRefByHash
(
ctx
,
rec
.
BlockHash
)
if
err
!=
nil
{
// Set as much data as possible
return
eth
.
L1BlockRef
{
Hash
:
rec
.
BlockHash
,
Number
:
rec
.
BlockNumber
.
Uint64
(),
},
err
}
return
l1ref
,
nil
}
// l1BlockRefByHash gets the L1BlockRef for the passed L1 block hash. The passed
// context is assumed to be a lifetime context, so it is internally wrapped with
// a network timeout.
func
(
l
*
BatchSubmitter
)
l1BlockRefByHash
(
ctx
context
.
Context
,
hash
common
.
Hash
)
(
eth
.
L1BlockRef
,
error
)
{
tctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
networkTimeout
)
defer
cancel
()
head
,
err
:=
l
.
L1Client
.
HeaderByHash
(
tctx
,
hash
)
if
err
!=
nil
{
return
eth
.
L1BlockRef
{},
fmt
.
Errorf
(
"getting L1 block %v: %w"
,
hash
,
err
)
}
return
eth
.
L1BlockRefFromHeader
(
head
),
nil
}
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