diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-10-15 17:31:37 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-10-15 17:31:37 +0200 |
| commit | d8bc28cc3636b370b112d0de09f57e5c5b0b3322 (patch) | |
| tree | 2fd29b2a139a9847019c0be1b3074f043ecf6aa7 /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 62629541a53f9a4b9d9562d8dd1b3ca5628bde9d (diff) | |
| parent | 69ce33f2175eb0692846e18572608fa25c41976e (diff) | |
| download | monzero-core-d8bc28cc3636b370b112d0de09f57e5c5b0b3322.tar.gz monzero-core-d8bc28cc3636b370b112d0de09f57e5c5b0b3322.tar.xz monzero-core-d8bc28cc3636b370b112d0de09f57e5c5b0b3322.zip | |
Merge pull request #2552
69ce33f2 core: fix failure to sync when a tx is already in the pool (moneromooo-monero)
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 bd01bc69a..cec3f7225 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"); |
