Commit 6eeb25f9 authored by Joshua Gutow's avatar Joshua Gutow

op-batcher: Enable balance check metric

parent 18bff588
...@@ -94,6 +94,7 @@ func Main(version string) func(cliCtx *cli.Context) error { ...@@ -94,6 +94,7 @@ func Main(version string) func(cliCtx *cli.Context) error {
l.Error("error starting metrics server", err) l.Error("error starting metrics server", err)
} }
}() }()
opmetrics.LaunchBalanceMetrics(ctx, l, registry, "", batchSubmitter.cfg.L1Client, batchSubmitter.addr)
} }
rpcCfg := cfg.RPCConfig rpcCfg := cfg.RPCConfig
...@@ -125,6 +126,7 @@ func Main(version string) func(cliCtx *cli.Context) error { ...@@ -125,6 +126,7 @@ func Main(version string) func(cliCtx *cli.Context) error {
// batches to L1 for availability. // batches to L1 for availability.
type BatchSubmitter struct { type BatchSubmitter struct {
txMgr txmgr.TxManager txMgr txmgr.TxManager
addr common.Address
cfg sequencer.Config cfg sequencer.Config
wg sync.WaitGroup wg sync.WaitGroup
done chan struct{} done chan struct{}
...@@ -244,6 +246,7 @@ func NewBatchSubmitter(cfg Config, l log.Logger) (*BatchSubmitter, error) { ...@@ -244,6 +246,7 @@ func NewBatchSubmitter(cfg Config, l log.Logger) (*BatchSubmitter, error) {
return &BatchSubmitter{ return &BatchSubmitter{
cfg: batcherCfg, cfg: batcherCfg,
addr: addr,
txMgr: txmgr.NewSimpleTxManager("batcher", txManagerConfig, l1Client), txMgr: txmgr.NewSimpleTxManager("batcher", txManagerConfig, l1Client),
done: make(chan struct{}), done: make(chan struct{}),
log: l, log: l,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment