diff options
| author | MarcoFalke <[email protected]> | 2020-09-24 15:11:27 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-09-29 10:20:05 +0200 |
| commit | fa23308e9aad70c99a31f91d8556f1876ea02c04 (patch) | |
| tree | b506f748bfb0d71bde4c34500abf0bc0455040b6 /src/test/versionbits_tests.cpp | |
| parent | Merge #19969: Send RPC bug fix and touch-ups (diff) | |
| download | discoin-fa23308e9aad70c99a31f91d8556f1876ea02c04.tar.xz discoin-fa23308e9aad70c99a31f91d8556f1876ea02c04.zip | |
Remove gArgs global from CreateChainParams to aid testing
Diffstat (limited to 'src/test/versionbits_tests.cpp')
| -rw-r--r-- | src/test/versionbits_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/versionbits_tests.cpp b/src/test/versionbits_tests.cpp index 11c6bdad9..50444f7bb 100644 --- a/src/test/versionbits_tests.cpp +++ b/src/test/versionbits_tests.cpp @@ -223,7 +223,7 @@ BOOST_AUTO_TEST_CASE(versionbits_test) } // Sanity checks of version bit deployments - const auto chainParams = CreateChainParams(CBaseChainParams::MAIN); + const auto chainParams = CreateChainParams(*m_node.args, CBaseChainParams::MAIN); const Consensus::Params &mainnetParams = chainParams->GetConsensus(); for (int i=0; i<(int) Consensus::MAX_VERSION_BITS_DEPLOYMENTS; i++) { uint32_t bitmask = VersionBitsMask(mainnetParams, static_cast<Consensus::DeploymentPos>(i)); @@ -250,7 +250,7 @@ BOOST_AUTO_TEST_CASE(versionbits_computeblockversion) { // Check that ComputeBlockVersion will set the appropriate bit correctly // on mainnet. - const auto chainParams = CreateChainParams(CBaseChainParams::MAIN); + const auto chainParams = CreateChainParams(*m_node.args, CBaseChainParams::MAIN); const Consensus::Params &mainnetParams = chainParams->GetConsensus(); // Use the TESTDUMMY deployment for testing purposes. |