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:
perl5577 2014-09-07 20:00:52 +02:00
parent bf972c40fc
commit 2f1164f8d6

View File

@ -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
{ {