Skip to content

Commit

Permalink
Merge pull request #8917
Browse files Browse the repository at this point in the history
835896e wallet2: do not lose exception in current thread on refresh (Crypto City)
62bb95b wallet2: fix missing exceptions from failing wallet refresh (Crypto City)
  • Loading branch information
luigi1111 committed Jul 7, 2023
2 parents 4dc727b + 835896e commit ab82600
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet/wallet2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3842,6 +3842,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;
Expand Down Expand Up @@ -3908,6 +3909,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();
Expand Down

0 comments on commit ab82600

Please sign in to comment.