mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
refactor: use local argsmanager in CRegTestParams
This commit is contained in:
parent
9b20f66828
commit
8ed9002cd1
1 changed files with 2 additions and 2 deletions
|
@ -341,8 +341,8 @@ public:
|
||||||
|
|
||||||
void CRegTestParams::UpdateActivationParametersFromArgs(const ArgsManager& args)
|
void CRegTestParams::UpdateActivationParametersFromArgs(const ArgsManager& args)
|
||||||
{
|
{
|
||||||
if (gArgs.IsArgSet("-segwitheight")) {
|
if (args.IsArgSet("-segwitheight")) {
|
||||||
int64_t height = gArgs.GetArg("-segwitheight", consensus.SegwitHeight);
|
int64_t height = args.GetArg("-segwitheight", consensus.SegwitHeight);
|
||||||
if (height < -1 || height >= std::numeric_limits<int>::max()) {
|
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));
|
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) {
|
} else if (height == -1) {
|
||||||
|
|
Loading…
Reference in a new issue