diff options
author | Crypto City <cryptocity@example.com> | 2023-05-30 17:07:20 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2023-06-27 11:08:45 +0000 |
commit | 835896ea24cefb42024bd492f2458fe8e1fc7f09 (patch) | |
tree | 04a34f7e5c770cf294fec8a2c819c639fb126aa2 | |
parent | wallet2: fix missing exceptions from failing wallet refresh (diff) | |
download | monero-835896ea24cefb42024bd492f2458fe8e1fc7f09.tar.xz |
wallet2: do not lose exception in current thread on refresh
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index a9c53dfa0..ee7b78f54 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3566,6 +3566,7 @@ void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blo catch (const std::exception &e) { MERROR("Error parsing blocks: " << e.what()); + exception = std::current_exception(); error = true; } blocks_fetched += added_blocks; |