diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-19 16:39:56 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-19 16:47:13 +0000 |
commit | 9d58749b854e4ef3a66b220f30d5651ed000d36d (patch) | |
tree | e38923be2a9e171a473d1f5cdb0363eeac0edc4f /src/wallet/wallet2.cpp | |
parent | Merge pull request #5008 (diff) | |
download | monero-9d58749b854e4ef3a66b220f30d5651ed000d36d.tar.xz |
wallet2: fix hashchain going out of sync on refresh error
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r-- | src/wallet/wallet2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index f02e5b6e1..a86d681d3 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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 |