mirror of
https://github.com/monero-project/monero.git
synced 2025-12-24 14:22:53 +01:00
tx_pool: fix divide by 0 in log
Coverity 205394
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user