Page MenuHomePhabricator

refactor: Pass ArgsManager into functions that register args
ClosedPublic

Authored by Fabien on Dec 10 2020, 13:15.

Details

Summary
Rationale: reduce use of gArgs to decouple code and simplify future
maintenance and easier unit testing.

This PR is continuation of work started in #18926 and #18662
It covers only places that register args in ArgsManager with AddArgs()
or AddHiddenArgs().

Backport of core PR19561.

Depends on D8643.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Dec 10 2020, 13:15
deadalnix requested changes to this revision.Dec 10 2020, 15:37
deadalnix added a subscriber: deadalnix.

Make sure you update the seeder too.

This revision now requires changes to proceed.Dec 10 2020, 15:37
Fabien requested review of this revision.Dec 10 2020, 16:37

The seeder is updated

Sorry, I missed that. Thanks, good job.

This revision is now accepted and ready to land.Dec 11 2020, 17:29