Skip to content

Commit 2fcf74e

Browse files
committed
RPC/Net: Allow addconnection on non-regtest networks
1 parent 96ec3b6 commit 2fcf74e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/rpc/net.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,6 @@ static RPCHelpMan addconnection()
370370
},
371371
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
372372
{
373-
if (Params().GetChainType() != ChainType::REGTEST) {
374-
throw std::runtime_error("addconnection is for regression testing (-regtest mode) only.");
375-
}
376-
377373
const std::string address = request.params[0].get_str();
378374
const std::string conn_type_in{TrimString(request.params[1].get_str())};
379375
ConnectionType conn_type{};

0 commit comments

Comments
 (0)