From f8687684e336e5c120f7f93a91c36bd51791da20 Mon Sep 17 00:00:00 2001 From: Crypto City Date: Tue, 30 May 2023 16:51:28 +0000 Subject: wallet2: fix missing exceptions from failing wallet refresh --- src/wallet/wallet2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 378fccfab..338d34b50 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3776,6 +3776,7 @@ 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; + last = false; start_height = 0; blocks.clear(); parsed_blocks.clear(); -- cgit v1.2.3 From eeda4a84978e5b640c56013d82415836030c17df Mon Sep 17 00:00:00 2001 From: Crypto City Date: Tue, 30 May 2023 17:07:20 +0000 Subject: wallet2: do not lose exception in current thread on refresh --- src/wallet/wallet2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3