Merge pull request #6028

174a6ac tx_pool: fix divide by 0 in log (moneromooo-monero)
pull/326/head
luigi1111 5 years ago
commit 86d085e988
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -324,7 +324,7 @@ namespace cryptonote
++m_cookie;
MINFO("Transaction added to pool: txid " << id << " weight: " << tx_weight << " fee/byte: " << (fee / (double)tx_weight));
MINFO("Transaction added to pool: txid " << id << " weight: " << tx_weight << " fee/byte: " << (fee / (double)(tx_weight ? tx_weight : 1)));
prune(m_txpool_max_weight);

Loading…
Cancel
Save