aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-10 12:42:36 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-25 15:48:59 +0100
commit28b72b6eccc73cdbf2eab2297124dcd7d7a25815 (patch)
tree068a2469c5041ed5a39f5421f288e0c4c2c798ae /src
parentcore_tests: catch (impossible in practice) tx extra api failure (diff)
downloadmonero-28b72b6eccc73cdbf2eab2297124dcd7d7a25815.tar.xz
tx_pool: pre-init tvc.m_verifivation_failed before processing
CID 175316
Diffstat (limited to 'src')
-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 942dcedd3..0485f731f 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -202,6 +202,9 @@ namespace cryptonote
return false;
}
+ // assume failure during verification steps until success is certain
+ tvc.m_verifivation_failed = true;
+
time_t receive_time = time(nullptr);
crypto::hash max_used_block_id = null_hash;
@@ -285,9 +288,6 @@ namespace cryptonote
tvc.m_should_be_relayed = true;
}
- // assume failure during verification steps until success is certain
- tvc.m_verifivation_failed = true;
-
tvc.m_verifivation_failed = false;
MINFO("Transaction added to pool: txid " << id << " bytes: " << blob_size << " fee/byte: " << (fee / (double)blob_size));