diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-01-08 16:35:14 -0800 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-01-08 16:35:14 -0800 |
commit | 03497f026804a3fa3e1b670a7ea8fddd7a783d9e (patch) | |
tree | b1be8d58705524f5396d014e88850e3980ab022a /src/wallet | |
parent | Merge pull request #1496 (diff) | |
parent | wallet2: fix large reorgs failing (diff) | |
download | monero-03497f026804a3fa3e1b670a7ea8fddd7a783d9e.tar.xz |
Merge pull request #1497
50511677 wallet2: fix large reorgs failing (moneromooo-monero)
Diffstat (limited to 'src/wallet')
-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 7d76b110b..28702ca25 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1631,7 +1631,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 |