Skip to content

Commit 78c2707

Browse files
committed
Refactor: Replace 'isMockableChain' with inline 'ChainType' check for 'submitpackage'
1 parent 27b4084 commit 78c2707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/mempool.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ static RPCHelpMan submitpackage()
862862
},
863863
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
864864
{
865-
if (!Params().IsMockableChain()) {
865+
if (Params().GetChainType() != ChainType::REGTEST) {
866866
throw std::runtime_error("submitpackage is for regression testing (-regtest mode) only");
867867
}
868868
const UniValue raw_transactions = request.params[0].get_array();

0 commit comments

Comments
 (0)