Page MenuHomePhabricator

refactor: Stop using gArgs global in system.cpp
ClosedPublic

Authored by PiRK on May 21 2024, 15:16.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC946cd1a1f86a: refactor: Stop using gArgs global in system.cpp
Summary

refactor: Use new GetConfigFilePath function

https://github.com/bitcoin/bitcoin/pull/27170/commits/b20b34f5b33230fe253c81008496bd9b13fd6ecf

refactor: Stop using gArgs global in system.cpp

Most of the code in util/system.cpp that was hardcoded to use the global
ArgsManager instance gArgs has been changed to work with explicit ArgsManager
instances (for example in https://github.com/bitcoin/bitcoin/pull/20092). But a
few hardcoded references to gArgs remain. This commit removes the last ones
so these functions aren't reading or writing global state.

https://github.com/bitcoin/bitcoin/pull/27170/commits/9a9d5da11fa6033f82dcf8e2298aee29587f5396

This is a backport of core#27170

Depends on D16193

Test Plan

ninja all check-all

Diff Detail

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

Event Timeline

PiRK requested review of this revision.May 21 2024, 15:16
Fabien retitled this revision from refactor: Stop using gArgs global in system.cpp# This is a combination of 2 commits. to refactor: Stop using gArgs global in system.cpp.May 21 2024, 15:43
This revision is now accepted and ready to land.May 21 2024, 15:46