Merge pull request #644 from hermeznetwork/feature/external-delete-not-count

Not count txs marked as external_delete to reach MaxTxsPool
This commit is contained in:
Eduard S
2021-03-18 11:44:08 +01:00
committed by GitHub
4 changed files with 3 additions and 4 deletions

View File

@@ -1129,7 +1129,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 {