mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-19 12:10:19 +01:00
net: Replace enum CConnMan::NumConnections with enum class ConnectionDirection
This commit is contained in:
@@ -659,7 +659,7 @@ static RPCHelpMan getblocktemplate()
|
||||
throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled");
|
||||
|
||||
if (!Params().IsTestChain()) {
|
||||
if (node.connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0) {
|
||||
if (node.connman->GetNodeCount(ConnectionDirection::Both) == 0) {
|
||||
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, PACKAGE_NAME " is not connected!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user