diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-10-25 14:29:15 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-10-25 14:29:15 -0500 |
commit | 86d085e98818f445316c401f08508b7b3c5993e9 (patch) | |
tree | 40f9e9f5885f743237c78f1570cb66f37aae32ad /src | |
parent | Merge pull request #6007 (diff) | |
parent | tx_pool: fix divide by 0 in log (diff) | |
download | monero-86d085e98818f445316c401f08508b7b3c5993e9.tar.xz |
Merge pull request #6028
174a6ac tx_pool: fix divide by 0 in log (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 2 |
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); |