aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-25 16:56:55 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-25 16:56:55 +0000
commit174a6ac9c581a8ec73f57170650cd0becf400ef7 (patch)
tree33fcb495d546aede0188e4aa6fbd423346085735 /src/cryptonote_core
parentMerge pull request #6002 (diff)
downloadmonero-174a6ac9c581a8ec73f57170650cd0becf400ef7.tar.xz
tx_pool: fix divide by 0 in log
Coverity 205394
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/tx_pool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index 0d70f2992..392e611e9 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -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);