diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-01-29 19:24:24 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-01-29 19:24:24 +0200 |
commit | b91fc2dc3c4489f44a74915ae80fd1968d150302 (patch) | |
tree | 96f432c221f6edb336b65000acf30f0c45e3efa9 /src/simplewallet/simplewallet.h | |
parent | Merge pull request #628 (diff) | |
parent | tx_pool: do not accept txes not in a block if they timed out before (diff) | |
download | monero-b91fc2dc3c4489f44a74915ae80fd1968d150302.tar.xz |
Merge pull request #629
94b98fb tx_pool: do not accept txes not in a block if they timed out before (moneromooo-monero)
eadbdf3 tx_pool: fix use of invalidated iterator (moneromooo-monero)
3b1d7e0 Fix V1/V2 use of hard fork related parameters (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.h')
-rw-r--r-- | src/simplewallet/simplewallet.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.h b/src/simplewallet/simplewallet.h index c2a8d2296..05f42f8de 100644 --- a/src/simplewallet/simplewallet.h +++ b/src/simplewallet/simplewallet.h @@ -177,7 +177,8 @@ namespace cryptonote void update(uint64_t height, bool force = false) { auto current_time = std::chrono::system_clock::now(); - if (std::chrono::seconds(DIFFICULTY_TARGET / 2) < current_time - m_blockchain_height_update_time || m_blockchain_height <= height) + const auto node_update_threshold = std::chrono::seconds(DIFFICULTY_TARGET_V1 / 2); // use min of V1/V2 + if (node_update_threshold < current_time - m_blockchain_height_update_time || m_blockchain_height <= height) { update_blockchain_height(); m_blockchain_height = (std::max)(m_blockchain_height, height); |