mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Refactor: Replace 'isMockableChain' with inline 'ChainType' check for 'submitpackage'
This commit is contained in:
parent
27b4084e16
commit
78c2707b2a
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue