mirror of
https://github.com/monero-project/monero.git
synced 2025-01-28 18:56:31 +02:00
workaround solution for disconnection off simplewallet
I use modification on my pool for more 1 mount and simplewallet never disconnect with at.
This commit is contained in:
parent
bf972c40fc
commit
2f1164f8d6
@ -343,10 +343,11 @@ void wallet2::refresh(uint64_t start_height, size_t & blocks_fetched, bool& rece
|
|||||||
catch (const std::exception&)
|
catch (const std::exception&)
|
||||||
{
|
{
|
||||||
blocks_fetched += added_blocks;
|
blocks_fetched += added_blocks;
|
||||||
if(try_count < 3)
|
if(try_count < 30000)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L1("Another try pull_blocks (try_count=" << try_count << ")...");
|
LOG_PRINT_L1("Another try pull_blocks (try_count=" << try_count << ")...");
|
||||||
++try_count;
|
++try_count;
|
||||||
|
sleep(60);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user