diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 9a519253e..86eba9354 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -4180,6 +4180,7 @@ void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blo } catch (const tools::error::out_of_hashchain_bounds_error&) { + waiter.wait(); MINFO("Daemon claims next refresh block is out of hash chain bounds, resetting hash chain"); uint64_t stop_height = m_blockchain.offset(); std::vector tip(m_blockchain.size() - m_blockchain.offset()); @@ -4203,6 +4204,7 @@ void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blo } catch (const std::exception &e) { + waiter.wait(); MERROR("Error parsing blocks: " << e.what()); exception = std::current_exception(); error = true;