Merge pull request #5084

9d58749b wallet2: fix hashchain going out of sync on refresh error (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2019-03-04 21:19:12 +02:00
commit b0d326bf2a
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -3001,6 +3001,11 @@ void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blo
{ {
LOG_PRINT_L1("Another try pull_blocks (try_count=" << try_count << ")..."); LOG_PRINT_L1("Another try pull_blocks (try_count=" << try_count << ")...");
first = true; first = true;
start_height = 0;
blocks.clear();
parsed_blocks.clear();
short_chain_history.clear();
get_short_chain_history(short_chain_history, 1);
++try_count; ++try_count;
} }
else else