On master (5622d8f3156a293e61d0964c33d4b21d8c9fd5e0), having QSettings
set already
0$ grep nPruneSize ~/.config/Bitcoin/Bitcoin-Qt-testnet.conf
1nPruneSize=6
enabling prune option in the intro dialog
0$ ./src/qt/bitcoin-qt -choosedatadir -testnet
has no effect:
0$ grep Prune ~/.bitcoin/testnet3/debug.log
12019-12-08T10:04:41Z Prune configured to target 5722 MiB on disk for block and undo files.
With this PR:
0$ grep Prune ~/.bitcoin/testnet3/debug.log
12019-12-08T10:20:35Z Prune configured to target 1907 MiB on disk for block and undo files.
This PR has been split of #17453 (the first two commits) as it fixes an orthogonal bug.
Refs: