mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Introduce REQUIRED_SERVICES constant
This commit is contained in:
@@ -1596,7 +1596,7 @@ void ThreadOpenConnections()
|
||||
continue;
|
||||
|
||||
// only connect to full nodes
|
||||
if (!(addr.nServices & NODE_NETWORK))
|
||||
if ((addr.nServices & REQUIRED_SERVICES) != REQUIRED_SERVICES)
|
||||
continue;
|
||||
|
||||
// only consider very recently tried nodes after 30 failed attempts
|
||||
|
||||
Reference in New Issue
Block a user