diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-21 00:26:48 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-21 00:56:21 +0000 |
commit | 932994c0cb25d21ccc5795c23b0e342427260625 (patch) | |
tree | 70c92777fc82a486b459d89dac53bdfd4bbbc377 /src/blockchain_utilities | |
parent | Merge pull request #490 (diff) | |
download | monero-932994c0cb25d21ccc5795c23b0e342427260625.tar.xz |
Relay transactions when they linger too long in the pool
The last relayed time of a transaction is maintained, and
transactions will be relayed again if they are still in the
pool after a certain amount of time, which increases with
the transaction's age. All such transactions are resent,
whether or not they originated on the local node.
Diffstat (limited to 'src/blockchain_utilities')
-rw-r--r-- | src/blockchain_utilities/blockchain_import.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp index 88d748411..26bbbec8b 100644 --- a/src/blockchain_utilities/blockchain_import.cpp +++ b/src/blockchain_utilities/blockchain_import.cpp @@ -401,7 +401,7 @@ int import_from_file(FakeCore& simple_core, const std::string& import_file_path, // get_transaction_hash(tx, hsh, blob_size); tx_verification_context tvc = AUTO_VAL_INIT(tvc); bool r = true; - r = simple_core.m_pool.add_tx(tx, tvc, true); + r = simple_core.m_pool.add_tx(tx, tvc, true, true); if (!r) { LOG_PRINT_RED_L0("failed to add transaction to transaction pool, height=" << h <<", tx_num=" << tx_num); |