diff --git a/cmd/monitor/monitor.go b/cmd/monitor/monitor.go index 68fa20f1..2a30e6d9 100644 --- a/cmd/monitor/monitor.go +++ b/cmd/monitor/monitor.go @@ -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") @@ -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)