mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-04 00:12:33 +02:00
Merge branch 'rpc_addconnection_mainnet' into relax_invblk_punishment
This commit is contained in:
commit
a7b600d1e9
@ -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{};
|
||||
|
Loading…
Reference in New Issue
Block a user