aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Neubauer <timnbr99@gmail.com>2023-09-01 14:26:18 +0200
committerTim Neubauer <timnbr99@gmail.com>2023-09-15 16:32:11 +0200
commit78c2707b2aefa9e0aee5ddceaeab31997085a241 (patch)
tree23bd0e7e7648ac3ad825cf848135ceb6f96a6487 /src
parent27b4084e16a1cb210ce27119416ee34625781052 (diff)
Refactor: Replace 'isMockableChain' with inline 'ChainType' check for 'submitpackage'
Diffstat (limited to 'src')
-rw-r--r--src/rpc/mempool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp
index 377e9de0e8..705608bd47 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();