mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-10 06:39:15 +02:00
Merge bitcoin/bitcoin#28379: Refactor: Remove m_is_test_chain
78c2707b2aRefactor: Replace 'isMockableChain' with inline 'ChainType' check for 'submitpackage' (Tim Neubauer)27b4084e16Refactor: Remove m_is_test_chain (Tim Neubauer) Pull request description: Remove the m_is_test_chain bool Compiled and run tests locally #28376 ACKs for top commit: MarcoFalke: re-ACK78c2707b2aajtowns: ACK78c2707b2aTree-SHA512: 2eedd855c379dd12b7ff28b0e03414680cc892313f16502f36e09906513df9c222e8cc2cea3ff4d9a4f47c9efdfa00d017f38398021b0c96d4543711206d6ff8
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