aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-10-25 14:29:15 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-10-25 14:29:15 -0500
commit86d085e98818f445316c401f08508b7b3c5993e9 (patch)
tree40f9e9f5885f743237c78f1570cb66f37aae32ad
parentMerge pull request #6007 (diff)
parenttx_pool: fix divide by 0 in log (diff)
downloadmonero-86d085e98818f445316c401f08508b7b3c5993e9.tar.xz
Merge pull request #6028
174a6ac tx_pool: fix divide by 0 in log (moneromooo-monero)
-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);