Skip to content

Commit

Permalink
Added a todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Shailu-s committed Dec 23, 2024
1 parent 36178bc commit 751bb84
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sequencer/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ func NewNode(cfg *config.Node, version string) (*Node, error) {
Rollup: *sync.RollupConstants(),
}

// TODO: rename node configs or remove unnecessary configs if not needed
hdbNodeCfg := historydb.NodeConfig{
MaxPoolTxs: cfg.Coordinator.L2DB.MaxTxs,
MinFeeUSD: cfg.Coordinator.L2DB.MinFeeUSD,
Expand Down Expand Up @@ -550,14 +551,14 @@ func NewNode(cfg *config.Node, version string) (*Node, error) {
ctx, cancel := context.WithCancel(context.Background())
return &Node{
stateAPIUpdater: stateAPIUpdater,
coord: coord,
sync: sync,
cfg: cfg,
sqlConnRead: db,
sqlConnWrite: db,
historyDB: historyDB,
ctx: ctx,
cancel: cancel,
coord: coord,
sync: sync,
cfg: cfg,
sqlConnRead: db,
sqlConnWrite: db,
historyDB: historyDB,
ctx: ctx,
cancel: cancel,
}, nil
}

Expand Down Expand Up @@ -678,7 +679,6 @@ func (n *Node) Stop() {
n.coord.BatchBuilder().LocalStateDB().Close()
}


func (n *Node) handleNewBlock(
ctx context.Context,
stats *synchronizer.Stats,
Expand Down

0 comments on commit 751bb84

Please sign in to comment.