From 2f1164f8d6b60d9dc607692fe8d87523cc96275a Mon Sep 17 00:00:00 2001 From: perl5577 Date: Sun, 7 Sep 2014 20:00:52 +0200 Subject: [PATCH] workaround solution for disconnection off simplewallet I use modification on my pool for more 1 mount and simplewallet never disconnect with at. --- src/wallet/wallet2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index da45771af..fd1f6b978 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -343,10 +343,11 @@ void wallet2::refresh(uint64_t start_height, size_t & blocks_fetched, bool& rece catch (const std::exception&) { blocks_fetched += added_blocks; - if(try_count < 3) + if(try_count < 30000) { LOG_PRINT_L1("Another try pull_blocks (try_count=" << try_count << ")..."); ++try_count; + sleep(60); } else {