diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-10-12 13:41:12 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-10-12 14:07:40 +0000 |
commit | 11b20229c999889d25b7f9c3542f205b6f94fcdc (patch) | |
tree | 3e3feb9bf6651ab92d98d3ad939df265ac31f425 /src/cryptonote_core/tx_pool.cpp | |
parent | Merge pull request #6841 (diff) | |
download | monero-11b20229c999889d25b7f9c3542f205b6f94fcdc.tar.xz |
tx_pool: silence spammy harmless warning till we fix the bug
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 85bcf2246..28721ee36 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -1391,7 +1391,10 @@ namespace cryptonote txpool_tx_meta_t meta; if (!m_blockchain.get_txpool_tx_meta(sorted_it->second, meta)) { - MERROR(" failed to find tx meta"); + static bool warned = false; + if (!warned) + MERROR(" failed to find tx meta: " << sorted_it->second << " (will only print once)"); + warned = true; continue; } LOG_PRINT_L2("Considering " << sorted_it->second << ", weight " << meta.weight << ", current block weight " << total_weight << "/" << max_total_weight << ", current coinbase " << print_money(best_coinbase) << ", relay method " << (unsigned)meta.get_relay_method()); |