wallet2: do not lose exception in current thread on refresh

This commit is contained in:
Crypto City 2023-05-30 17:07:20 +00:00 committed by moneromooo-monero
parent f8687684e3
commit eeda4a8497
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -3712,6 +3712,7 @@ void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blo
catch (const std::exception &e) catch (const std::exception &e)
{ {
MERROR("Error parsing blocks: " << e.what()); MERROR("Error parsing blocks: " << e.what());
exception = std::current_exception();
error = true; error = true;
} }
blocks_fetched += added_blocks; blocks_fetched += added_blocks;