Skip to content

Commit ec9b25d

Browse files
committed
test: signet network selection tests
1 parent 3efe298 commit ec9b25d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/key_io_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ BOOST_AUTO_TEST_CASE(key_io_invalid)
136136
std::string exp_base58string = test[0].get_str();
137137

138138
// must be invalid as public and as private key
139-
for (const auto& chain : { CBaseChainParams::MAIN, CBaseChainParams::TESTNET, CBaseChainParams::REGTEST }) {
139+
for (const auto& chain : { CBaseChainParams::MAIN, CBaseChainParams::TESTNET, CBaseChainParams::SIGNET, CBaseChainParams::REGTEST }) {
140140
SelectParams(chain);
141141
destination = DecodeDestination(exp_base58string);
142142
BOOST_CHECK_MESSAGE(!IsValidDestination(destination), "IsValid pubkey in mainnet:" + strTest);

src/test/util_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,8 @@ struct ArgsMergeTestingSetup : public BasicTestingSetup {
848848
ForEachNoDup(conf_actions, SET, SECTION_NEGATE, [&] {
849849
for (bool soft_set : {false, true}) {
850850
for (bool force_set : {false, true}) {
851-
for (const std::string& section : {CBaseChainParams::MAIN, CBaseChainParams::TESTNET}) {
852-
for (const std::string& network : {CBaseChainParams::MAIN, CBaseChainParams::TESTNET}) {
851+
for (const std::string& section : {CBaseChainParams::MAIN, CBaseChainParams::TESTNET, CBaseChainParams::SIGNET}) {
852+
for (const std::string& network : {CBaseChainParams::MAIN, CBaseChainParams::TESTNET, CBaseChainParams::SIGNET}) {
853853
for (bool net_specific : {false, true}) {
854854
fn(arg_actions, conf_actions, soft_set, force_set, section, network, net_specific);
855855
}
@@ -1003,7 +1003,7 @@ BOOST_FIXTURE_TEST_CASE(util_ArgsMerge, ArgsMergeTestingSetup)
10031003
// Results file is formatted like:
10041004
//
10051005
// <input> || <IsArgSet/IsArgNegated/GetArg output> | <GetArgs output> | <GetUnsuitable output>
1006-
BOOST_CHECK_EQUAL(out_sha_hex, "8fd4877bb8bf337badca950ede6c917441901962f160e52514e06a60dea46cde");
1006+
BOOST_CHECK_EQUAL(out_sha_hex, "d1e436c1cd510d0ec44d5205d4b4e3bee6387d316e0075c58206cb16603f3d82");
10071007
}
10081008

10091009
// Similar test as above, but for ArgsManager::GetChainName function.

0 commit comments

Comments
 (0)