Skip to content

Commit

Permalink
chore: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Sep 17, 2024
1 parent 61deb90 commit 6746614
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions cmd/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func monitor(ctx context.Context) error {
return errBatchRequestsNotSupported
}

// Check if tx pool is supported.
// Check if tx pool status is supported.
txPoolStatusSupported := false
if _, _, err = util.GetTxPoolStatus(rpc); err != nil {
log.Debug().Err(err).Msg("Unable to get tx pool status")
Expand All @@ -146,15 +146,8 @@ func monitor(ctx context.Context) error {
ms.BlocksLock.Unlock()

ms.ChainID = big.NewInt(0)
ms.TxPoolStatus = txPoolStatus{
pending: 0,
queued: 0,
}
ms.ZkEVMBatches = zkEVMBatches{
trusted: 0,
virtual: 0,
verified: 0,
}
ms.TxPoolStatus = txPoolStatus{}
ms.ZkEVMBatches = zkEVMBatches{}

observedPendingTxs = make(historicalRange, 0)

Expand Down

0 comments on commit 6746614

Please sign in to comment.