Skip to content

Commit

Permalink
RPC/Net: Allow addconnection on non-regtest networks
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Nov 24, 2023
1 parent 96ec3b6 commit 2fcf74e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/rpc/net.cpp
Expand Up @@ -370,10 +370,6 @@ static RPCHelpMan addconnection()
},
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
{
if (Params().GetChainType() != ChainType::REGTEST) {
throw std::runtime_error("addconnection is for regression testing (-regtest mode) only.");
}

const std::string address = request.params[0].get_str();
const std::string conn_type_in{TrimString(request.params[1].get_str())};
ConnectionType conn_type{};
Expand Down

0 comments on commit 2fcf74e

Please sign in to comment.