Not count txs marked as external_delete to reach MaxTxsPool

This commit is contained in:
arnaubennassar
2021-03-17 09:45:21 +01:00
parent 80f16201a2
commit c280b21b89
4 changed files with 3 additions and 4 deletions

View File

@@ -1121,7 +1121,6 @@ func (hdb *HistoryDB) GetMetricsInternalAPI(lastBatchNum common.BatchNum) (*Metr
nBatches++
}
if (p.ToBatchNum - p.FromBatchNum) > 0 {
fmt.Printf("DBG ntxs: %v, nBatches: %v\n", nTxs, nBatches)
metrics.TransactionsPerBatch = float64(nTxs) /
float64(nBatches)
} else {