mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-04 04:45:10 +02:00
testnet: Introduce Testnet4
This commit is contained in:
@@ -15,6 +15,8 @@ std::string ChainTypeToString(ChainType chain)
|
||||
return "main";
|
||||
case ChainType::TESTNET:
|
||||
return "test";
|
||||
case ChainType::TESTNET4:
|
||||
return "testnet4";
|
||||
case ChainType::SIGNET:
|
||||
return "signet";
|
||||
case ChainType::REGTEST:
|
||||
@@ -29,6 +31,8 @@ std::optional<ChainType> ChainTypeFromString(std::string_view chain)
|
||||
return ChainType::MAIN;
|
||||
} else if (chain == "test") {
|
||||
return ChainType::TESTNET;
|
||||
} else if (chain == "testnet4") {
|
||||
return ChainType::TESTNET4;
|
||||
} else if (chain == "signet") {
|
||||
return ChainType::SIGNET;
|
||||
} else if (chain == "regtest") {
|
||||
|
||||
Reference in New Issue
Block a user