core-lightning/lightningd
Rusty Russell 0ed03648f4 lightningd: minor cleanups in setchannelfee parsing.
1. amount operations should force you to check validity, rather than
   needing a separate call, so make amount_msat_to_u32 return bool,
   and WARN_UNUSED_RESULT it.
2. Create a special parsing function for this; not only does this mean
   we now only need that one amount call, but also 'check' will correctly
   fail with invalid amounts (it only does the parsing step).
3. If we create a primitive which we immediately take(), we allocate it
   off NULL to make it clear we expect its lifetime to end here.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-03-16 03:02:34 +00:00
..
test json: add cmd setchannelfee and wire to channeld 2019-03-15 02:48:18 +00:00
.gitignore
bitcoind.c Makefile: check for direct amount_sat/amount_msat access. 2019-02-21 08:01:37 +00: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 bitcoin: use amount_sat/amount_msat. 2019-02-21 08:01:37 +00:00
chaintopology.h openingd/json_fund_channel: 2019-01-29 04:50:01 +00:00
channel_control.c json: add cmd setchannelfee and wire to channeld 2019-03-15 02:48:18 +00: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 adds: new db fields and struct variables 2019-03-15 02:48:18 +00:00
channel.h adds: new db fields and struct variables 2019-03-15 02:48:18 +00:00
closing_control.c bitcoin: use amount_sat/amount_msat. 2019-02-21 08:01:37 +00:00
closing_control.h
connect_control.c json: move bitcoin/lightning specific helpers into common/json_helpers. 2019-01-15 12:01:38 +01:00
connect_control.h connectd: remove separate address hint message. 2018-08-09 19:44:27 +02:00
gossip_control.c bitcoin: use amount_sat/amount_msat. 2019-02-21 08:01:37 +00:00
gossip_control.h
gossip_msg.c daemons: use amount_msat/amount_sat in all internal wire transfers. 2019-02-21 08:01:37 +00:00
gossip_msg.h daemons: use amount_msat/amount_sat in all internal wire transfers. 2019-02-21 08:01:37 +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 daemons: use amount_msat/amount_sat in all internal wire transfers. 2019-02-21 08:01:37 +00:00
htlc_end.h daemons: use amount_msat/amount_sat in all internal wire transfers. 2019-02-21 08:01:37 +00:00
invoice.c Makefile: check for direct amount_sat/amount_msat access. 2019-02-21 08:01:37 +00:00
invoice.h
json_stream.c lightningd: re-enable IO logging for JSON output. 2019-02-21 00:44:57 +00:00
json_stream.h update-mocks: make sure we can find json_add functions. 2019-02-21 00:44:57 +00:00
json.c Makefile: check for direct amount_sat/amount_msat access. 2019-02-21 08:01:37 +00:00
json.h lightningd/json: make wallet_tx functions take amount_sat. 2019-02-21 03:44:44 +00:00
jsonrpc.c lightningd/json: make wallet_tx functions take amount_sat. 2019-02-21 03:44:44 +00:00
jsonrpc.h lightningd: re-enable IO logging for JSON output. 2019-02-21 00:44:57 +00:00
lightningd.c feat: block of newlines when attaching a logfile 2019-02-22 03:01:37 +00:00
lightningd.h fix: change type of config->fee_per_satoshi to uint32 2019-02-18 00:17:31 +00:00
log_status.c
log_status.h
log.c feat: block of newlines when attaching a logfile 2019-02-22 03:01:37 +00:00
log.h param: make json_tok_ handlers all return command_result, rename to param_ 2018-12-20 03:22:32 +00:00
Makefile common/json_tok: add param_msat / param_sat. 2019-02-21 03:44:44 +00:00
memdump.c jsonrpc: probe sites for usage information once, at start. 2019-02-07 20:33:50 +00:00
memdump.h lightningd: add code to search strmaps for memleak detection. 2019-02-07 20:33:50 +00:00
notification.c notifications: Fix iteration over notification topics 2019-01-17 05:42:49 +00:00
notification.h plugin: Add connect and disconnect notifications 2018-12-30 14:36:02 +01:00
onchain_control.c onchaind: Have onchaind also tell us the scriptPubKey of our outputs 2019-02-22 11:15:24 -08:00
onchain_control.h
opening_control.c adds: new db fields and struct variables 2019-03-15 02:48:18 +00:00
opening_control.h openingd: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
options.c fix: change type of config->fee_per_satoshi to uint32 2019-02-18 00:17:31 +00:00
options.h opts: Split early from non-early args so plugins can register theirs 2018-11-13 00:44:50 +01:00
pay.c listsendpays: updated version of listpayments. 2019-02-23 05:45:25 +00:00
pay.h lightningd: move pay internals back into pay.c 2019-01-23 22:08:08 +01:00
peer_control.c lightningd: minor cleanups in setchannelfee parsing. 2019-03-16 03:02:34 +00:00
peer_control.h channeld: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
peer_htlcs.c htlc: forward channel specific fee settings 2019-03-15 02:48:18 +00:00
peer_htlcs.h daemons: use amount_msat/amount_sat in all internal wire transfers. 2019-02-21 08:01:37 +00:00
ping.c param: make command_fail/command_success WARN_UNUSED_RESULT. 2018-12-20 03:22:32 +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 lightningd: re-enable IO logging for JSON output. 2019-02-21 00:44:57 +00:00
plugin_hook.h plugin: Add hooks that a plugin might register 2019-01-17 05:42:49 +00:00
plugin.c fix: missing closedir in plugin.c 2019-03-06 23:27:07 +00:00
plugin.h fix crash with lightning charge and plugin opts (#2358) 2019-02-17 21:44:10 +01:00
subd.c plugins: allow --dev-debugger=<pluginname>. 2018-12-10 00:00:50 +00:00
subd.h plugins: allow --dev-debugger=<pluginname>. 2018-12-10 00:00:50 +00: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