mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-07-23 22:58:59 +02:00
chainparams: add overloads for RegTest and SigNet with no options
For consistency with the overloads introduced in the previous commit, and because there is already a few places where they are useful.
This commit is contained in:
@@ -703,8 +703,8 @@ std::optional<ChainType> GetNetworkForMagic(const MessageStartChars& message)
|
||||
const auto mainnet_msg = CChainParams::Main()->MessageStart();
|
||||
const auto testnet_msg = CChainParams::TestNet()->MessageStart();
|
||||
const auto testnet4_msg = CChainParams::TestNet4()->MessageStart();
|
||||
const auto regtest_msg = CChainParams::RegTest({})->MessageStart();
|
||||
const auto signet_msg = CChainParams::SigNet({})->MessageStart();
|
||||
const auto regtest_msg = CChainParams::RegTest()->MessageStart();
|
||||
const auto signet_msg = CChainParams::SigNet()->MessageStart();
|
||||
|
||||
if (std::ranges::equal(message, mainnet_msg)) {
|
||||
return ChainType::MAIN;
|
||||
|
||||
Reference in New Issue
Block a user