Commit e27d6c5b authored by Pieter Wuille's avatar Pieter Wuille
Browse files

Adjust protocol timeouts

parent a9e960a4
......@@ -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) {
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment