Skip to content

Commit 8ed9002

Browse files
committed
refactor: use local argsmanager in CRegTestParams
1 parent 9b20f66 commit 8ed9002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chainparams.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ class CRegTestParams : public CChainParams {
341341

342342
void CRegTestParams::UpdateActivationParametersFromArgs(const ArgsManager& args)
343343
{
344-
if (gArgs.IsArgSet("-segwitheight")) {
345-
int64_t height = gArgs.GetArg("-segwitheight", consensus.SegwitHeight);
344+
if (args.IsArgSet("-segwitheight")) {
345+
int64_t height = args.GetArg("-segwitheight", consensus.SegwitHeight);
346346
if (height < -1 || height >= std::numeric_limits<int>::max()) {
347347
throw std::runtime_error(strprintf("Activation height %ld for segwit is out of valid range. Use -1 to disable segwit.", height));
348348
} else if (height == -1) {

0 commit comments

Comments
 (0)