mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Only store and connect to NODE_NETWORK nodes
This commit is contained in:
@@ -1596,6 +1596,10 @@ void ThreadOpenConnections()
|
||||
if (IsLimited(addr))
|
||||
continue;
|
||||
|
||||
// only connect to full nodes
|
||||
if (!(addr.nServices & NODE_NETWORK))
|
||||
continue;
|
||||
|
||||
// only consider very recently tried nodes after 30 failed attempts
|
||||
if (nANow - addr.nLastTry < 600 && nTries < 30)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user