Skip to content

Commit

Permalink
Merge pull request #1497
Browse files Browse the repository at this point in the history
5051167 wallet2: fix large reorgs failing (moneromooo-monero)
  • Loading branch information
fluffypony committed Jan 9, 2017
2 parents 209a633 + 5051167 commit 03497f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03497f0

Please sign in to comment.