mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge 8c049fe9af into merged_master (Bitcoin PR #19771)
This commit is contained in:
commit
b47f3355c7
9 changed files with 36 additions and 24 deletions
|
|
@ -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!");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue