Rusty Russell
af645b38c8
common: fix missing HOME case, when we override --lightning-dir.
It fails because option.c tal_free's the old value, which must be
a tal ptr.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
0b5b1faff5
common/configdir: simply supply defaults, leave parsing to programs.
We're going to get tricky with lightingd's parsing next, so split it out.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
6 years ago
Rusty Russell
666e1b320f
lightningd: fix double-specified args.
We need to make sure the arg is a tal object, as we'll free it next time.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Saibato
7dcaf27bf5
allow --rpc-file option to change default value
short onliner as rustyrussel suggested
7 years ago
Ronald van der Meer
fa992ecaab
clarified --lightning-dir syntax on help
7 years ago
practicalswift
2c17546cbd
Onboarding: Make "lightning-cli" (without arguments) output the equivalent of "lightning-cli --help; lightning-cli help"
New users invoking lightning-cli are likely interested in what RPC
commands they can invoke via the command.
7 years ago
Rusty Russell
b00525b8c8
options: don't leak memory when people override options.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
8375857116
common: absorb remaining files from daemon/
Also, we split the more sophisticated json_add helpers to avoid pulling in
everything into lightning-cli, and unify the routines to print struct
short_channel_id (it's ':', not '/' too).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
f66358882a
config: different defaults for mainnet and testnet.
In particular, remove fee ranges on testnet (too unreliable) and accept
a single confirm.
(Note that an earlier version of this had a bug when there was no
config file, this version includes the fix).
Closes : #40
Reported-by: Glenn Willen
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago
Rusty Russell
378dadc371
daemon: configuration directory (default ~/.lightning).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
9 years ago