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 | f253bf384674ae8a2f1d0652cb27ff17c7fc1fc1 (diff) | |
| parent | 174a6ac9c581a8ec73f57170650cd0becf400ef7 (diff) | |
| download | monzero-core-86d085e98818f445316c401f08508b7b3c5993e9.tar.gz monzero-core-86d085e98818f445316c401f08508b7b3c5993e9.tar.xz monzero-core-86d085e98818f445316c401f08508b7b3c5993e9.zip | |
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); |
