mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
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.
This commit is contained in:
parent
049b7e9a93
commit
505116771e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
process_blocks(blocks_start_height, blocks, o_indices, added_blocks);
|
||||||
blocks_fetched += added_blocks;
|
blocks_fetched += added_blocks;
|
||||||
pull_thread.join();
|
pull_thread.join();
|
||||||
if(!added_blocks)
|
if(blocks_start_height == next_blocks_start_height)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// switch to the new blocks from the daemon
|
// switch to the new blocks from the daemon
|
||||||
|
|
Loading…
Reference in a new issue