Delete old protocol version constants and simplify code that used them.
fixes #2244 Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
@@ -1194,7 +1194,7 @@ void ThreadSocketHandler()
|
||||
LogPrintf("socket sending timeout: %is\n", nTime - pnode->nLastSend);
|
||||
pnode->fDisconnect = true;
|
||||
}
|
||||
else if (nTime - pnode->nLastRecv > (pnode->nVersion > BIP0031_VERSION ? TIMEOUT_INTERVAL : 90*60))
|
||||
else if (nTime - pnode->nLastRecv > TIMEOUT_INTERVAL)
|
||||
{
|
||||
LogPrintf("socket receive timeout: %is\n", nTime - pnode->nLastRecv);
|
||||
pnode->fDisconnect = true;
|
||||
|
||||
Reference in New Issue
Block a user