mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Refactor: Replace 'isMockableChain' with inline 'ChainType' check for 'submitpackage'
This commit is contained in:
@@ -862,7 +862,7 @@ static RPCHelpMan submitpackage()
|
||||
},
|
||||
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
|
||||
{
|
||||
if (!Params().IsMockableChain()) {
|
||||
if (Params().GetChainType() != ChainType::REGTEST) {
|
||||
throw std::runtime_error("submitpackage is for regression testing (-regtest mode) only");
|
||||
}
|
||||
const UniValue raw_transactions = request.params[0].get_array();
|
||||
|
||||
Reference in New Issue
Block a user