wallet2: fix hashchain going out of sync on refresh error

This commit is contained in:
moneromooo-monero 2019-01-19 16:39:56 +00:00
parent 4e72384318
commit 9d58749b85
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -2930,6 +2930,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 << ")...");
first = true;
start_height = 0;
blocks.clear();
parsed_blocks.clear();
short_chain_history.clear();
get_short_chain_history(short_chain_history, 1);
++try_count;
}
else