libplugin: allow display of default values.
This means we can see the values in listconfigs, even if we haven't set them yet. In particular, we now see the following: * autoclean-cycle.value_int=3600 * bitcoin-rpcclienttimeout.value_int=60 * bitcoin-retry-timeout.value_int=60 * funder-max-their-funding.value_str=4294967295sat * funder-per-channel-min.value_str=10000sat * funder-reserve-tank.value_str=0sat * funder-fund-probability.value_int=100 Changelog-Changed: plugins: libplugin now shows plugin option default values (where they're non-trivial) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Alex Myers
parent
6af32885fa
commit
757e6f8a9b
@@ -1257,39 +1257,39 @@ int main(int argc, char *argv[])
|
||||
plugin_option("bitcoin-datadir",
|
||||
"string",
|
||||
"-datadir arg for bitcoin-cli",
|
||||
charp_option, &bitcoind->datadir),
|
||||
charp_option, NULL, &bitcoind->datadir),
|
||||
plugin_option("bitcoin-cli",
|
||||
"string",
|
||||
"bitcoin-cli pathname",
|
||||
charp_option, &bitcoind->cli),
|
||||
charp_option, NULL, &bitcoind->cli),
|
||||
plugin_option("bitcoin-rpcuser",
|
||||
"string",
|
||||
"bitcoind RPC username",
|
||||
charp_option, &bitcoind->rpcuser),
|
||||
charp_option, NULL, &bitcoind->rpcuser),
|
||||
plugin_option("bitcoin-rpcpassword",
|
||||
"string",
|
||||
"bitcoind RPC password",
|
||||
charp_option, &bitcoind->rpcpass),
|
||||
charp_option, NULL, &bitcoind->rpcpass),
|
||||
plugin_option("bitcoin-rpcconnect",
|
||||
"string",
|
||||
"bitcoind RPC host to connect to",
|
||||
charp_option, &bitcoind->rpcconnect),
|
||||
charp_option, NULL, &bitcoind->rpcconnect),
|
||||
plugin_option("bitcoin-rpcport",
|
||||
"int",
|
||||
"bitcoind RPC host's port",
|
||||
charp_option, &bitcoind->rpcport),
|
||||
charp_option, NULL, &bitcoind->rpcport),
|
||||
plugin_option("bitcoin-rpcclienttimeout",
|
||||
"int",
|
||||
"bitcoind RPC timeout in seconds during HTTP requests",
|
||||
u64_option, &bitcoind->rpcclienttimeout),
|
||||
u64_option, u64_jsonfmt, &bitcoind->rpcclienttimeout),
|
||||
plugin_option("bitcoin-retry-timeout",
|
||||
"int",
|
||||
"how long to keep retrying to contact bitcoind"
|
||||
" before fatally exiting",
|
||||
u64_option, &bitcoind->retry_timeout),
|
||||
u64_option, u64_jsonfmt, &bitcoind->retry_timeout),
|
||||
plugin_option_dev("dev-no-fake-fees",
|
||||
"bool",
|
||||
"Suppress fee faking for regtest",
|
||||
bool_option, &bitcoind->dev_no_fake_fees),
|
||||
bool_option, NULL, &bitcoind->dev_no_fake_fees),
|
||||
NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user