core-lightning/lightningd
Rusty Russell f68c9fa9c9 opt: make sure early cmdline options override config file.
I noticed that --network=regtest didn't override 'network=bitcoin' in
the config file.

Normally we parse the config file first, then the commandline (so the cmdline
wins).  But for early options, we do cmdline first so we can find the config
file.  That was fine when the only early option was the location of the
config file, but now it includes plugins and the network setting.

So do a boutique cmdline parse *just* to find the config file, then parse
the config file early options, then the cmdline early options.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-07-27 05:16:22 +00:00
..
test opt: make sure early cmdline options override config file. 2019-07-27 05:16:22 +00:00
.gitignore
bitcoind.c lightningd: fix fatal error on startup if bitcoind isn't ready. 2019-07-26 10:27:01 +00:00
bitcoind.h lightningd/options.c: Add option for setting how long to keep trying bitcoin-cli command. 2019-07-18 18:59:11 +02:00
chaintopology.c lightningd/chaintopology: log_debug on broadcasting error (#2792) 2019-07-24 16:48:09 +08:00
chaintopology.h openingd/json_fund_channel: 2019-01-29 04:50:01 +00:00
channel_control.c lightningd: add slow_reconnect flag for transient failure. 2019-07-26 03:53:03 +00:00
channel_control.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
channel_state.h wallet: Add a final CLOSED state to channels 2019-06-30 16:41:30 +09:30
channel.c lightningd: add slow_reconnect flag for transient failure. 2019-07-26 03:53:03 +00:00
channel.h lightningd: add slow_reconnect flag for transient failure. 2019-07-26 03:53:03 +00:00
closing_control.c lightningd: add slow_reconnect flag for transient failure. 2019-07-26 03:53:03 +00:00
closing_control.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
connect_control.c lightningd: add slow_reconnect flag for transient failure. 2019-07-26 03:53:03 +00:00
connect_control.h Use node_id everywhere for nodes. 2019-04-09 12:37:16 -07:00
gossip_control.c lightningd: have json_stream_success start the "result" object. 2019-06-12 02:00:15 +00:00
gossip_control.h connectd: wean off gossip_wire message types, use our own. 2018-07-25 02:13:52 +00:00
gossip_msg.c listchannels: add htlc_minimum_msat and htlc_maximum_msat fields. 2019-06-11 23:19:11 +00:00
gossip_msg.h listchannels: add htlc_minimum_msat and htlc_maximum_msat fields. 2019-06-11 23:19:11 +00:00
hsm_control.c developer: add --dev-force-channel-secrets. 2019-07-17 12:55:37 -05:00
hsm_control.h Use node_id everywhere for nodes. 2019-04-09 12:37:16 -07:00
htlc_end.c wallet: Add received_time to htlc_in for forwarding times 2019-04-10 23:48:39 +00:00
htlc_end.h wallet: Add received_time to htlc_in for forwarding times 2019-04-10 23:48:39 +00:00
invoice.c invoice: fix up internal help msg to match updated expiry default. 2019-07-27 05:16:22 +00:00
invoice.h lightningd: move local invoice resolution into invoice.c function. 2019-04-12 03:32:48 +00:00
io_loop_with_timers.c plugins: don't crash if getmanifest times out. 2019-07-24 16:16:53 +02:00
io_loop_with_timers.h lightningd/io_loop_with_timers.c: Move mainloop to its own source file, have chaintopology use it. 2019-05-31 17:57:10 +02:00
json_stream.c lightningd: restore ' ' before '}' for older pylightning. 2019-06-17 21:46:25 +02:00
json_stream.h lightningd: restore ' ' before '}' for older pylightning. 2019-06-17 21:46:25 +02:00
json.c json: correct error message for param parser 2019-06-12 02:22:43 +00:00
json.h ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
jsonrpc.c add signet support 2019-07-22 16:38:32 -05:00
jsonrpc.h lightningd: tighten interal json_stream API. 2019-06-12 02:00:15 +00:00
lightningd.c opt: make sure early cmdline options override config file. 2019-07-27 05:16:22 +00:00
lightningd.h developer: add --dev-force-channel-secrets. 2019-07-17 12:55:37 -05:00
log_status.c log: add 'warning' notification when log 2019-06-07 01:23:51 +00:00
log_status.h
log.c lightningd/log: prefix log messages with level. 2019-07-02 03:26:10 +00:00
log.h log: add 'warning' notification when log 2019-06-07 01:23:51 +00:00
Makefile common: pull out scriptPubkey address method 2019-06-12 02:22:43 +00:00
memdump.c lightningd: free timers on shutdown. 2019-06-30 16:41:30 +09:30
memdump.h lightningd: add code to search strmaps for memleak detection. 2019-02-07 20:33:50 +00:00
notification.c Plugins: Add a notification for invoice payment 2019-07-25 11:19:47 +08:00
notification.h Plugins: Add a notification for invoice payment 2019-07-25 11:19:47 +08:00
onchain_control.c common: add peer_error flag to treat this error as "soft". 2019-07-26 03:53:03 +00:00
onchain_control.h
opening_control.c common: add peer_error flag to treat this error as "soft". 2019-07-26 03:53:03 +00:00
opening_control.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
options.c opt: make sure early cmdline options override config file. 2019-07-27 05:16:22 +00:00
options.h opt: make sure early cmdline options override config file. 2019-07-27 05:16:22 +00:00
pay.c lightningd: free timers on shutdown. 2019-06-30 16:41:30 +09:30
pay.h lightningd: move pay internals back into pay.c 2019-01-23 22:08:08 +01:00
peer_control.c common: add peer_error flag to treat this error as "soft". 2019-07-26 03:53:03 +00:00
peer_control.h common: add peer_error flag to treat this error as "soft". 2019-07-26 03:53:03 +00:00
peer_htlcs.c bolt: update to BOLT spec changes (extract format + type specifications) 2019-07-16 06:10:58 +00:00
peer_htlcs.h lightningd: fix occasional missing txid detection. 2019-06-28 03:31:43 +00:00
ping.c bolt: update to BOLT spec changes (extract format + type specifications) 2019-07-16 06:10:58 +00:00
ping.h ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
plugin_hook.c plugin: fix printing of bad plugin responses. 2019-05-31 18:36:38 +02:00
plugin_hook.h lightningd: remove deserialize step for plugin hooks. 2019-04-23 15:26:42 +02:00
plugin.c plugins: when plugins start, log their PID and path 2019-07-27 05:14:34 +00:00
plugin.h plugins: do I/O logging. 2019-05-31 18:36:38 +02:00
subd.c common: add peer_error flag to treat this error as "soft". 2019-07-26 03:53:03 +00:00
subd.h common: add peer_error flag to treat this error as "soft". 2019-07-26 03:53:03 +00:00
watch.c lightningd: fix occasional missing txid detection. 2019-06-28 03:31:43 +00:00
watch.h lightningd: fix occasional missing txid detection. 2019-06-28 03:31:43 +00:00