HomePhabricator

scripted-diff: Replace GetDataDir() calls with `gArgs.GetDataDirNet()` calls

Description

scripted-diff: Replace GetDataDir() calls with gArgs.GetDataDirNet() calls

Summary:

-BEGIN VERIFY SCRIPT-
git ls-files -- 'src' ':(exclude)src/util/system.h' ':(exclude)src/util/system.cpp' | xargs sed -i 's/GetDataDir()/gArgs.GetDataDirNet()/g';
git ls-files -- 'src' ':(exclude)src/util/system.h' ':(exclude)src/util/system.cpp' | xargs sed -i 's/GetDataDir(true)/gArgs.GetDataDirNet()/g';
arc lint
-END VERIFY SCRIPT-

Depends on D11955

This is a backport of core#21850 [5/6]
https://github.com/bitcoin/bitcoin/pull/21850/commits/4c3a5dcbfc3010965332ad568c3a70618c930ef3
https://github.com/bitcoin/bitcoin/pull/21850/commits/b3e67f20a02bcf43f20873029ce30617c95eb9da

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11956

Details

Provenance
PiRKAuthored on Sep 12 2022, 08:44
PiRKPushed on Sep 12 2022, 15:17
Reviewer
Restricted Project
Differential Revision
D11956: scripted-diff: Replace GetDataDir() calls with `gArgs.GetDataDirNet()` calls
Parents
rABC237effb85acb: Make ArgsManager.GetDataDirPath private and drop needless suffix
Branches
Unknown
Tags
Unknown