From 78c2707b2aefa9e0aee5ddceaeab31997085a241 Mon Sep 17 00:00:00 2001 From: Tim Neubauer Date: Fri, 1 Sep 2023 14:26:18 +0200 Subject: [PATCH] Refactor: Replace 'isMockableChain' with inline 'ChainType' check for 'submitpackage' --- src/rpc/mempool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp index 377e9de0e84..705608bd476 100644 --- a/src/rpc/mempool.cpp +++ b/src/rpc/mempool.cpp @@ -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();