aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Metlushko <metlushko@gmail.com>2020-07-21 17:58:45 +0700
committerIvan Metlushko <metlushko@gmail.com>2020-07-29 16:39:03 +0700
commit8ed9002cd14165f751442f738fbf1fb8a37611b2 (patch)
tree10792c2db63d0bd326e65df1cdc0f0f6410273d4 /src
parent9b20f6682845870d6ac53a01d3166fb83c467e7d (diff)
refactor: use local argsmanager in CRegTestParams
Diffstat (limited to 'src')
-rw-r--r--src/chainparams.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp
index 092c45e4ce..a7c9e33f07 100644
--- a/src/chainparams.cpp
+++ b/src/chainparams.cpp
@@ -341,8 +341,8 @@ public:
void CRegTestParams::UpdateActivationParametersFromArgs(const ArgsManager& args)
{
- if (gArgs.IsArgSet("-segwitheight")) {
- int64_t height = gArgs.GetArg("-segwitheight", consensus.SegwitHeight);
+ if (args.IsArgSet("-segwitheight")) {
+ int64_t height = args.GetArg("-segwitheight", consensus.SegwitHeight);
if (height < -1 || height >= std::numeric_limits<int>::max()) {
throw std::runtime_error(strprintf("Activation height %ld for segwit is out of valid range. Use -1 to disable segwit.", height));
} else if (height == -1) {