From e27d6c5b3d01f79fbbaff56b05d03f8bfa6ce11f Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 31 May 2016 22:07:07 +0200 Subject: [PATCH] Adjust protocol timeouts --- bitcoin.cpp | 4 ++-- main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bitcoin.cpp b/bitcoin.cpp index 6eecee8..9ccbabf 100644 --- a/bitcoin.cpp +++ b/bitcoin.cpp @@ -26,9 +26,9 @@ class CNode { int GetTimeout() { if (you.IsTor()) - return 60; + return 120; else - return 10; + return 30; } void BeginMessage(const char *pszCommand) { diff --git a/main.cpp b/main.cpp index 3e4c8e5..7ae9831 100644 --- a/main.cpp +++ b/main.cpp @@ -159,7 +159,7 @@ extern "C" void* ThreadCrawler(void* data) { res.nClientV = 0; res.nHeight = 0; res.strClientV = ""; - bool getaddr = res.ourLastSuccess + 604800 < now; + bool getaddr = res.ourLastSuccess + 86400 < now; res.fGood = TestNode(res.service,res.nBanTime,res.nClientV,res.strClientV,res.nHeight,getaddr ? &addr : NULL); } db.ResultMany(ips);