Merge 8c049fe9af into merged_master (Bitcoin PR #19771)

This commit is contained in:
Andrew Poelstra 2021-06-26 12:47:11 +00:00
commit b47f3355c7
9 changed files with 36 additions and 24 deletions

View file

@ -681,7 +681,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!");
}