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
e0673b59
Unverified
Commit
e0673b59
authored
Feb 22, 2023
by
mergify[bot]
Committed by
GitHub
Feb 22, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4933 from mdehoog/michael/remove-duplicate-signer
[op-batcher] Remove duplicate signer
parents
0c3493e2
fdf6e8d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
config.go
op-batcher/batcher/config.go
+0
-2
driver.go
op-batcher/batcher/driver.go
+1
-2
txmgr.go
op-batcher/batcher/txmgr.go
+2
-2
No files found.
op-batcher/batcher/config.go
View file @
e0673b59
...
@@ -11,7 +11,6 @@ import (
...
@@ -11,7 +11,6 @@ import (
"github.com/ethereum-optimism/optimism/op-batcher/flags"
"github.com/ethereum-optimism/optimism/op-batcher/flags"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/sources"
opcrypto
"github.com/ethereum-optimism/optimism/op-service/crypto"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
opmetrics
"github.com/ethereum-optimism/optimism/op-service/metrics"
opmetrics
"github.com/ethereum-optimism/optimism/op-service/metrics"
oppprof
"github.com/ethereum-optimism/optimism/op-service/pprof"
oppprof
"github.com/ethereum-optimism/optimism/op-service/pprof"
...
@@ -28,7 +27,6 @@ type Config struct {
...
@@ -28,7 +27,6 @@ type Config struct {
PollInterval
time
.
Duration
PollInterval
time
.
Duration
TxManagerConfig
txmgr
.
Config
TxManagerConfig
txmgr
.
Config
From
common
.
Address
From
common
.
Address
SignerFnFactory
opcrypto
.
SignerFactory
// RollupConfig is queried at startup
// RollupConfig is queried at startup
Rollup
*
rollup
.
Config
Rollup
*
rollup
.
Config
...
...
op-batcher/batcher/driver.go
View file @
e0673b59
...
@@ -83,7 +83,6 @@ func NewBatchSubmitterFromCLIConfig(cfg CLIConfig, l log.Logger) (*BatchSubmitte
...
@@ -83,7 +83,6 @@ func NewBatchSubmitterFromCLIConfig(cfg CLIConfig, l log.Logger) (*BatchSubmitte
PollInterval
:
cfg
.
PollInterval
,
PollInterval
:
cfg
.
PollInterval
,
TxManagerConfig
:
txManagerConfig
,
TxManagerConfig
:
txManagerConfig
,
From
:
fromAddress
,
From
:
fromAddress
,
SignerFnFactory
:
signer
,
Rollup
:
rcfg
,
Rollup
:
rcfg
,
Channel
:
ChannelConfig
{
Channel
:
ChannelConfig
{
SeqWindowSize
:
rcfg
.
SeqWindowSize
,
SeqWindowSize
:
rcfg
.
SeqWindowSize
,
...
@@ -117,7 +116,7 @@ func NewBatchSubmitter(cfg Config, l log.Logger) (*BatchSubmitter, error) {
...
@@ -117,7 +116,7 @@ func NewBatchSubmitter(cfg Config, l log.Logger) (*BatchSubmitter, error) {
Config
:
cfg
,
Config
:
cfg
,
txMgr
:
NewTransactionManager
(
l
,
txMgr
:
NewTransactionManager
(
l
,
cfg
.
TxManagerConfig
,
cfg
.
Rollup
.
BatchInboxAddress
,
cfg
.
Rollup
.
L1ChainID
,
cfg
.
TxManagerConfig
,
cfg
.
Rollup
.
BatchInboxAddress
,
cfg
.
Rollup
.
L1ChainID
,
cfg
.
From
,
cfg
.
L1Client
,
cfg
.
SignerFnFactory
(
cfg
.
Rollup
.
L1ChainID
)
),
cfg
.
From
,
cfg
.
L1Client
),
done
:
make
(
chan
struct
{}),
done
:
make
(
chan
struct
{}),
// TODO: this context only exists because the event loop doesn't reach done
// TODO: this context only exists because the event loop doesn't reach done
// if the tx manager is blocking forever due to e.g. insufficient balance.
// if the tx manager is blocking forever due to e.g. insufficient balance.
...
...
op-batcher/batcher/txmgr.go
View file @
e0673b59
...
@@ -32,14 +32,14 @@ type TransactionManager struct {
...
@@ -32,14 +32,14 @@ type TransactionManager struct {
log
log
.
Logger
log
log
.
Logger
}
}
func
NewTransactionManager
(
log
log
.
Logger
,
txMgrConfg
txmgr
.
Config
,
batchInboxAddress
common
.
Address
,
chainID
*
big
.
Int
,
senderAddress
common
.
Address
,
l1Client
*
ethclient
.
Client
,
signerFn
opcrypto
.
SignerFn
)
*
TransactionManager
{
func
NewTransactionManager
(
log
log
.
Logger
,
txMgrConfg
txmgr
.
Config
,
batchInboxAddress
common
.
Address
,
chainID
*
big
.
Int
,
senderAddress
common
.
Address
,
l1Client
*
ethclient
.
Client
)
*
TransactionManager
{
t
:=
&
TransactionManager
{
t
:=
&
TransactionManager
{
batchInboxAddress
:
batchInboxAddress
,
batchInboxAddress
:
batchInboxAddress
,
senderAddress
:
senderAddress
,
senderAddress
:
senderAddress
,
chainID
:
chainID
,
chainID
:
chainID
,
txMgr
:
txmgr
.
NewSimpleTxManager
(
"batcher"
,
log
,
txMgrConfg
,
l1Client
),
txMgr
:
txmgr
.
NewSimpleTxManager
(
"batcher"
,
log
,
txMgrConfg
,
l1Client
),
l1Client
:
l1Client
,
l1Client
:
l1Client
,
signerFn
:
signerFn
,
signerFn
:
txMgrConfg
.
Signer
,
log
:
log
,
log
:
log
,
}
}
return
t
return
t
...
...
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