aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCrypto City <cryptocity@example.com>2023-05-30 17:07:20 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2023-05-30 17:08:05 +0000
commiteeda4a84978e5b640c56013d82415836030c17df (patch)
tree46b08754339b834630d9b5fd7fe4c443a31b6a7d /src
parentwallet2: fix missing exceptions from failing wallet refresh (diff)
downloadmonero-eeda4a84978e5b640c56013d82415836030c17df.tar.xz
wallet2: do not lose exception in current thread on refresh
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 338d34b50..50030ec57 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -3712,6 +3712,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;