diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-03 22:32:51 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-03 22:32:51 +0000 |
commit | cd71774d772fc26d48f8abd285744b8e0caf3bb6 (patch) | |
tree | f9523e9e201f81ea0ce712457f8f2bd06ccb33ee | |
parent | Merge pull request #1832 (diff) | |
download | monero-cd71774d772fc26d48f8abd285744b8e0caf3bb6.tar.xz |
tx_pool: log separately "not ready" and "double spend" cases
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 3abd3a99a..e943c961d 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -671,9 +671,15 @@ namespace cryptonote // Skip transactions that are not ready to be // included into the blockchain or that are // missing key images - if (!is_transaction_ready_to_go(tx_it->second) || have_key_images(k_images, tx_it->second.tx)) + if (!is_transaction_ready_to_go(tx_it->second)) { - LOG_PRINT_L2(" not ready to go, or key images already seen"); + LOG_PRINT_L2(" not ready to go"); + sorted_it++; + continue; + } + if (have_key_images(k_images, tx_it->second.tx)) + { + LOG_PRINT_L2(" key images already seen"); sorted_it++; continue; } |