Adjust protocol timeouts

This commit is contained in:
Pieter Wuille 2016-05-31 22:07:07 +02:00
parent a9e960a4dd
commit e27d6c5b3d
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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);