Merge branch 'rpc_addconnection_mainnet' into relax_invblk_punishment

This commit is contained in:
Luke Dashjr 2024-03-14 18:32:58 +00:00
commit a7b600d1e9

View File

@ -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{};