core-lightning/lightningd
Mark Beckwith 1a4f355a7b param: add ok flag to struct command
Callers to param() can now optionally set a flag to see if command_fail was
called.

This is necessary because the `cmd` is freed in case of failure.

I spent a bit of time trying to extend the lifetime of the `cmd` to the end
of parse_request(), but the destructors still needed to be called when they
were, and it was getting ugly.  So I took this minimal approach.

Signed-off-by: Mark Beckwith <wythe@intrig.com>
2018-09-25 15:11:45 +02:00
..
test param: call param() all the time 2018-09-25 15:11:45 +02:00
.gitignore
bitcoind.c lightningd: allow more than one bitcoind request at once, run multiple queues. 2018-09-19 13:21:21 +02:00
bitcoind.h lightningd: allow more than one bitcoind request at once, run multiple queues. 2018-09-19 13:21:21 +02:00
chaintopology.c chaintopology: don't "fix" unknown feerate against known one. 2018-09-03 15:55:42 +02:00
chaintopology.h chaintopology: remove redundant wallet pointer. 2018-09-03 05:01:40 +00:00
channel_control.c hsmd: rename hsm_client_wire_csv to hsm_wire.csv 2018-09-20 09:49:39 +02:00
channel_control.h lightningd: peer_start_channeld always returns true; make it void. 2018-08-10 12:46:45 +02:00
channel_state.h lightningd: new state AWAITING_UNILATERAL. 2018-08-23 14:46:22 +02:00
channel.c hsmd: rename hsm_client_wire_csv to hsm_wire.csv 2018-09-20 09:49:39 +02:00
channel.h db: store claimed per_commitment_point from option_data_loss_protect. 2018-08-23 14:46:22 +02:00
closing_control.c feerate: include rough estimates of actual tx costs. 2018-08-25 00:33:12 +00:00
closing_control.h
connect_control.c lightningd: use hsm_get_client_fd() helper for global daemons too. 2018-09-20 09:49:39 +02:00
connect_control.h connectd: remove separate address hint message. 2018-08-09 19:44:27 +02:00
gossip_control.c gossipd: Update BOLT-split flags in channel_update 2018-09-21 00:24:12 +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 gossipd: Update BOLT-split flags in channel_update 2018-09-21 00:24:12 +00:00
gossip_msg.h gossipd: Update BOLT-split flags in channel_update 2018-09-21 00:24:12 +00:00
hsm_control.c lightningd: use hsm_get_client_fd() helper for global daemons too. 2018-09-20 09:49:39 +02:00
hsm_control.h lightningd: use hsm_get_client_fd() helper for global daemons too. 2018-09-20 09:49:39 +02:00
htlc_end.c memleak: create and use a generic htable helper and generic intmap helper. 2018-08-24 19:54:32 +02:00
htlc_end.h memleak: create and use a generic htable helper and generic intmap helper. 2018-08-24 19:54:32 +02:00
invoice.c Invoiceapidoc patch 2018-09-25 05:21:00 +00:00
invoice.h
json.c json-rpc: Remove upper limit for percentage 2018-09-20 02:41:28 +00:00
json.h param: added json_tok_string 2018-09-03 00:40:27 +00:00
jsonrpc_errors.h renamed error code 2018-07-29 16:27:38 +02:00
jsonrpc.c param: add ok flag to struct command 2018-09-25 15:11:45 +02:00
jsonrpc.h param: add ok flag to struct command 2018-09-25 15:11:45 +02:00
lightningd.c ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
lightningd.h ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
log_status.c Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02:00
log_status.h
log.c add "io" to -log-level usage 2018-09-14 22:12:13 +02:00
log.h param: upgraded json_tok_loglevel 2018-08-20 01:02:25 +00:00
Makefile hsmd: rename hsm_client_wire_csv to hsm_wire.csv 2018-09-20 09:49:39 +02:00
memdump.c param: call param() all the time 2018-09-25 15:11:45 +02:00
onchain_control.c hsmd: rename hsm_client_wire_csv to hsm_wire.csv 2018-09-20 09:49:39 +02:00
onchain_control.h
opening_control.c hsmd: rename hsm_client_wire_csv to hsm_wire.csv 2018-09-20 09:49:39 +02:00
opening_control.h connectd: rely on the master to tell us to reconnect. 2018-08-09 19:44:27 +02:00
options.c subdaemon: better GDB support. 2018-09-04 14:36:05 +02:00
options.h
param.c param: add command mode 2018-09-25 15:11:45 +02:00
param.h param: updated comments in the spirit of #1899 2018-09-03 00:40:27 +00:00
pay.c param: listpayments now uses json_tok_sha256 2018-09-03 00:40:27 +00:00
pay.h pay: Pass description to send_payment 2018-07-30 03:04:45 +00:00
payalgo.c param: added json_tok_string 2018-09-03 00:40:27 +00:00
payalgo.h
peer_control.c hsmd: rename hsm_client_wire_csv to hsm_wire.csv 2018-09-20 09:49:39 +02:00
peer_control.h lightningd: move channel/peer/htlc load into own function. 2018-09-03 05:01:40 +00:00
peer_htlcs.c lightningd: move channel/peer/htlc load into own function. 2018-09-03 05:01:40 +00:00
peer_htlcs.h lightningd: move channel/peer/htlc load into own function. 2018-09-03 05:01:40 +00:00
ping.c ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
ping.h ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
subd.c lightningd: accept hsmstatus_client_bad_request messages (and log!) 2018-09-20 09:49:39 +02:00
subd.h lightningd: accept hsmstatus_client_bad_request messages (and log!) 2018-09-20 09:49:39 +02:00
watch.c txwatch: hand ld to callback, don't assume channel is non-NULL. 2018-08-21 00:48:02 +02:00
watch.h txwatch: hand ld to callback, don't assume channel is non-NULL. 2018-08-21 00:48:02 +02:00