We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96ec3b6 commit 2fcf74eCopy full SHA for 2fcf74e
src/rpc/net.cpp
@@ -370,10 +370,6 @@ static RPCHelpMan addconnection()
370
},
371
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
372
{
373
- if (Params().GetChainType() != ChainType::REGTEST) {
374
- throw std::runtime_error("addconnection is for regression testing (-regtest mode) only.");
375
- }
376
-
377
const std::string address = request.params[0].get_str();
378
const std::string conn_type_in{TrimString(request.params[1].get_str())};
379
ConnectionType conn_type{};
0 commit comments