mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #8884
eeda4a8
wallet2: do not lose exception in current thread on refresh (Crypto Cityf868768
wallet2: fix missing exceptions from failing wallet refresh (Crypto City)
This commit is contained in:
commit
0a1eaf26f9
@ -3952,6 +3952,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;
|
||||||
@ -4016,6 +4017,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 << ")...");
|
LOG_PRINT_L1("Another try pull_blocks (try_count=" << try_count << ")...");
|
||||||
first = true;
|
first = true;
|
||||||
|
last = false;
|
||||||
start_height = 0;
|
start_height = 0;
|
||||||
blocks.clear();
|
blocks.clear();
|
||||||
parsed_blocks.clear();
|
parsed_blocks.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user