aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-08 16:35:14 -0800
committerRiccardo Spagni <ric@spagni.net>2017-01-08 16:35:14 -0800
commit03497f026804a3fa3e1b670a7ea8fddd7a783d9e (patch)
treeb1be8d58705524f5396d014e88850e3980ab022a /src
parentMerge pull request #1496 (diff)
parentwallet2: fix large reorgs failing (diff)
downloadmonero-03497f026804a3fa3e1b670a7ea8fddd7a783d9e.tar.xz
Merge pull request #1497
50511677 wallet2: fix large reorgs failing (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet2.cpp2
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