aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.cpp
diff options
context:
space:
mode:
authormonero-project <sempre.amaro@gmail.com>2014-06-24 13:20:15 -0400
committermonero-project <sempre.amaro@gmail.com>2014-06-24 13:20:15 -0400
commitc050ff43bf5a8310b18081c5cd3d9bcd123416b8 (patch)
treed40ecde536b0c1d02972e707df7266e1a5d2cdeb /src/cryptonote_core/tx_pool.cpp
parentUpdate slow-hash.c (diff)
downloadmonero-c050ff43bf5a8310b18081c5cd3d9bcd123416b8.tar.xz
Fix copy/paste bug, thx Boolberry
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
-rw-r--r--src/cryptonote_core/tx_pool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index ce1bc1ad2..7f2caaaca 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -152,7 +152,7 @@ namespace cryptonote
<< "transaction id = " << get_transaction_hash(tx));
auto it_in_set = key_image_set.find(get_transaction_hash(tx));
- CHECK_AND_ASSERT_MES(key_image_set.size(), false, "transaction id not found in key_image set, img=" << txin.k_image << ENDL
+ CHECK_AND_ASSERT_MES(it_in_set != key_image_set.end, false, "transaction id not found in key_image set, img=" << txin.k_image << ENDL
<< "transaction id = " << get_transaction_hash(tx));
key_image_set.erase(it_in_set);
if(!key_image_set.size())
@@ -351,7 +351,7 @@ namespace cryptonote
ss << "id: " << txe.first << ENDL
<< "blob_size: " << txd.blob_size << ENDL
<< "fee: " << txd.fee << ENDL
- << "kept_by_block: " << txd.kept_by_block << ENDL
+ << "kept_by_block: " << (txd.kept_by_block ? "true":"false") << ENDL
<< "max_used_block_height: " << txd.max_used_block_height << ENDL
<< "max_used_block_id: " << txd.max_used_block_id << ENDL
<< "last_failed_height: " << txd.last_failed_height << ENDL
@@ -363,7 +363,7 @@ namespace cryptonote
<< obj_to_json_str(txd.tx) << ENDL
<< "blob_size: " << txd.blob_size << ENDL
<< "fee: " << txd.fee << ENDL
- << "kept_by_block: " << txd.kept_by_block << ENDL
+ << "kept_by_block: " << (txd.kept_by_block ? "true":"false") << ENDL
<< "max_used_block_height: " << txd.max_used_block_height << ENDL
<< "max_used_block_id: " << txd.max_used_block_id << ENDL
<< "last_failed_height: " << txd.last_failed_height << ENDL