diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-24 16:04:37 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-24 16:04:37 +0000 |
commit | 505116771ec4edea59fc38c6e3bad46b9b104fbc (patch) | |
tree | 9f675086879ea92b8e977127e53cdb0866e85329 /src | |
parent | Merge pull request #1483 (diff) | |
download | monero-505116771ec4edea59fc38c6e3bad46b9b104fbc.tar.xz |
wallet2: fix large reorgs failing
If a reorg was large enough that a full 1000 block chunk
from the daemon was all known blocks, refresh would stop,
and no reorg would happen.
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 221dd8e0b..7a41e6244 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1632,7 +1632,7 @@ void wallet2::refresh(uint64_t start_height, uint64_t & blocks_fetched, bool& re process_blocks(blocks_start_height, blocks, o_indices, added_blocks); blocks_fetched += added_blocks; pull_thread.join(); - if(!added_blocks) + if(blocks_start_height == next_blocks_start_height) break; // switch to the new blocks from the daemon |