mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Revert "Merge pull request #632"
This reverts commit58f890652e
, reversing changes made to39d73d2a27
.
This commit is contained in:
parent
f780f2e7ba
commit
616df496e9
1 changed files with 1 additions and 9 deletions
|
@ -753,15 +753,7 @@ void wallet2::refresh(uint64_t start_height, uint64_t & blocks_fetched, bool& re
|
||||||
bool error = false;
|
bool error = false;
|
||||||
pull_thread = std::thread([&]{pull_next_blocks(start_height, next_blocks_start_height, short_chain_history, blocks, next_blocks, error);});
|
pull_thread = std::thread([&]{pull_next_blocks(start_height, next_blocks_start_height, short_chain_history, blocks, next_blocks, error);});
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
process_blocks(blocks_start_height, blocks, added_blocks);
|
process_blocks(blocks_start_height, blocks, added_blocks);
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
pull_thread.join();
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
blocks_fetched += added_blocks;
|
blocks_fetched += added_blocks;
|
||||||
pull_thread.join();
|
pull_thread.join();
|
||||||
if(!added_blocks)
|
if(!added_blocks)
|
||||||
|
|
Loading…
Reference in a new issue