core: fix failure to sync when a tx is already in the pool

This commit is contained in:
moneromooo-monero
2017-09-29 21:34:10 +01:00
parent 5f7cddeb53
commit 69ce33f217
3 changed files with 28 additions and 9 deletions
+3
View File
@@ -899,6 +899,9 @@ namespace cryptonote
//-----------------------------------------------------------------------------------------------
bool core::add_new_tx(transaction& tx, const crypto::hash& tx_hash, const crypto::hash& tx_prefix_hash, size_t blob_size, tx_verification_context& tvc, bool keeped_by_block, bool relayed, bool do_not_relay)
{
if (keeped_by_block)
get_blockchain_storage().on_new_tx_from_block(tx);
if(m_mempool.have_tx(tx_hash))
{
LOG_PRINT_L2("tx " << tx_hash << "already have transaction in tx_pool");