Page MenuHomePhabricator

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

Authored by PiRK on Sep 12 2022, 09:03.

Details

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

Diff Detail

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