tx_pool: pre-init tvc.m_verifivation_failed before processing

CID 175316
pull/95/head
moneromooo-monero 7 years ago
parent 50a629b2e6
commit 28b72b6ecc
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

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

Loading…
Cancel
Save