diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-09-24 15:11:27 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-09-29 10:20:05 +0200 |
commit | fa23308e9aad70c99a31f91d8556f1876ea02c04 (patch) | |
tree | b506f748bfb0d71bde4c34500abf0bc0455040b6 /src/init.cpp | |
parent | e36aa351a31cde0f95ce957b2ff593a97f91eb6d (diff) |
Remove gArgs global from CreateChainParams to aid testing
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp index 7a5739fded..44fe56dba2 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -380,10 +380,10 @@ void SetupServerArgs(NodeContext& node) const auto testnetBaseParams = CreateBaseChainParams(CBaseChainParams::TESTNET); const auto signetBaseParams = CreateBaseChainParams(CBaseChainParams::SIGNET); const auto regtestBaseParams = CreateBaseChainParams(CBaseChainParams::REGTEST); - const auto defaultChainParams = CreateChainParams(CBaseChainParams::MAIN); - const auto testnetChainParams = CreateChainParams(CBaseChainParams::TESTNET); - const auto signetChainParams = CreateChainParams(CBaseChainParams::SIGNET); - const auto regtestChainParams = CreateChainParams(CBaseChainParams::REGTEST); + const auto defaultChainParams = CreateChainParams(argsman, CBaseChainParams::MAIN); + const auto testnetChainParams = CreateChainParams(argsman, CBaseChainParams::TESTNET); + const auto signetChainParams = CreateChainParams(argsman, CBaseChainParams::SIGNET); + const auto regtestChainParams = CreateChainParams(argsman, CBaseChainParams::REGTEST); // Hidden Options std::vector<std::string> hidden_args = { |