This PR adds the -printconfig
argument to bitcoind
. Like -help
and -version
, after printing to the console it exits.
Examples:
0bitcoind -printconfig
1 datadir: /Users/joao/Library/Application Support/Bitcoin
2 blocksdir: /Users/joao/Library/Application Support/Bitcoin/blocks
3
4# network is handled
5bitcoind -printconfig -regtest
6 datadir: /Users/joao/Library/Application Support/Bitcoin
7 blocksdir: /Users/joao/Library/Application Support/Bitcoin/regtest/blocks
8
9# support overriding datadir
10bitcoind -datadir=/tmp -testnet -printconfig
11 datadir: /tmp
12 blocksdir: /tmp/testnet3/blocks