We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b20f66 commit 8ed9002Copy full SHA for 8ed9002
src/chainparams.cpp
@@ -341,8 +341,8 @@ class CRegTestParams : public CChainParams {
341
342
void CRegTestParams::UpdateActivationParametersFromArgs(const ArgsManager& args)
343
{
344
- if (gArgs.IsArgSet("-segwitheight")) {
345
- int64_t height = gArgs.GetArg("-segwitheight", consensus.SegwitHeight);
+ if (args.IsArgSet("-segwitheight")) {
+ int64_t height = args.GetArg("-segwitheight", consensus.SegwitHeight);
346
if (height < -1 || height >= std::numeric_limits<int>::max()) {
347
throw std::runtime_error(strprintf("Activation height %ld for segwit is out of valid range. Use -1 to disable segwit.", height));
348
} else if (height == -1) {
0 commit comments