diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-29 21:34:10 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-29 21:34:10 +0100 |
| commit | 69ce33f2175eb0692846e18572608fa25c41976e (patch) | |
| tree | 63e39a745a8574149cd6386bf88c553a18da3b3e /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 5f7cddeb5383926e8c259939c0d2b490322bfe65 (diff) | |
| download | monzero-core-69ce33f2175eb0692846e18572608fa25c41976e.tar.gz monzero-core-69ce33f2175eb0692846e18572608fa25c41976e.tar.xz monzero-core-69ce33f2175eb0692846e18572608fa25c41976e.zip | |
core: fix failure to sync when a tx is already in the pool
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 57347fdbc..0bf88c8c5 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -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"); |
