aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-10-13 10:45:26 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-10-13 10:45:26 -0500
commite60be2289e061e9f504baa99b9286d39549d0c10 (patch)
tree842ed5aa559c9135a27442b810037201f5ba2055
parentMerge pull request #6870 (diff)
parenttx_pool: silence spammy harmless warning till we fix the bug (diff)
downloadmonero-e60be2289e061e9f504baa99b9286d39549d0c10.tar.xz
Merge pull request #6880
250c48a tx_pool: silence spammy harmless warning till we fix the bug (moneromooo-monero)
-rw-r--r--src/cryptonote_core/tx_pool.cpp5
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());