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
parent 6509ba5568
commit d77149d924

View File

@ -3960,6 +3960,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;