tx_pool: pre-init tvc.m_verifivation_failed before processing

CID 175316
This commit is contained in:
moneromooo-monero 2017-09-10 12:42:36 +01:00
parent 50a629b2e6
commit 28b72b6ecc
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 3 additions and 3 deletions

View File

@ -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));