diff options
| author | Riccardo Spagni <ric@spagni.net> | 2019-03-04 21:19:12 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2019-03-04 21:19:12 +0200 |
| commit | b0d326bf2abd87add0d3d546f02008fc642895b6 (patch) | |
| tree | d9686acd6819698c142499c4557a28231e90793b /src | |
| parent | 9d415495bfd43e4072fe71c41a9a0c3076e6635f (diff) | |
| parent | 9d58749b854e4ef3a66b220f30d5651ed000d36d (diff) | |
| download | monzero-core-b0d326bf2abd87add0d3d546f02008fc642895b6.tar.gz monzero-core-b0d326bf2abd87add0d3d546f02008fc642895b6.tar.xz monzero-core-b0d326bf2abd87add0d3d546f02008fc642895b6.zip | |
Merge pull request #5084
9d58749b wallet2: fix hashchain going out of sync on refresh error (moneromooo-monero)
Diffstat (limited to 'src')
| -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 72b3b4122..6b2c27d5e 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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 << ")..."); 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 |
