core-lightning/lightningd
Rusty Russell f4f6e451b1 lightningd: fix leak report when close called multiple times.
```
Global errors:
 - Node /tmp/ltests-odpd7qtt/test_close_twice_1/lightning-1/ has memory leaks: [
    {
        "backtrace": [
            "ccan/ccan/tal/tal.c:442 (tal_alloc_)",
            "ccan/ccan/tal/tal.c:471 (tal_alloc_arr_)",
            "lightningd/peer_control.c:1673 (param_feerate_range)",
            "common/param.c:43 (make_callback)",
            "common/param.c:140 (parse_by_name)",
            "common/param.c:259 (param_arr)",
            "common/param.c:344 (param)",
            "lightningd/peer_control.c:1706 (json_close)",
            "lightningd/jsonrpc.c:643 (command_exec)",
            "lightningd/jsonrpc.c:778 (rpc_command_hook_final)",
            "lightningd/plugin_hook.c:280 (plugin_hook_call_)",
            "lightningd/jsonrpc.c:866 (plugin_hook_call_rpc_command)",
            "lightningd/jsonrpc.c:965 (parse_request)",
            "lightningd/jsonrpc.c:1056 (read_json)",
            "ccan/ccan/io/io.c:59 (next_plan)",
            "ccan/ccan/io/io.c:407 (do_plan)",
            "ccan/ccan/io/io.c:417 (io_ready)",
            "ccan/ccan/io/poll.c:445 (io_loop)",
            "lightningd/io_loop_with_timers.c:24 (io_loop_with_timers)",
            "lightningd/lightningd.c:1123 (main)"
        ],
        "label": "lightningd/peer_control.c:1673:u32[]",
        "parents": [
            "lightningd/channel.c:372:struct channel"
        ],
        "value": "0x56428b886208"
    }
]
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-15 18:23:30 +02:00
..
test lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
.gitignore dualopend: new dualopend daemon, containing most of accepter side 2020-09-09 19:54:20 +09:30
bitcoind.c lightningd: don't complain about unable to estimate fees if not mainnet. 2021-07-09 07:26:09 +09:30
bitcoind.h lightningd: disable topology timers on shutdown. 2021-09-05 15:16:56 +02:00
chaintopology.c lightningd/chaintopology: stop callbacks rearming once topology stopped. 2021-09-08 19:11:47 +02:00
chaintopology.h lightningd/chaintopology: stop callbacks rearming once topology stopped. 2021-09-08 19:11:47 +02:00
channel_control.c lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
channel_control.h channeld: add a message to read if we only want to reestablish. 2021-06-25 13:23:28 +09:30
channel_state.h channel-state: add two new states, for dualopend 2021-01-10 13:44:04 +01:00
channel.c lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
channel.h lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
closing_control.c lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
closing_control.h lightningd: always pass closing connections through channeld. 2021-06-25 13:23:28 +09:30
coin_mvts.c channel_id: save to database, dont derive from funding_txid 2020-09-09 19:54:20 +09:30
coin_mvts.h coins: re-write API interface for htlc notices 2020-05-12 15:46:58 +09:30
connect_control.c cleanup: rename use_proxy_always to always_use_proxy to match cfg 2021-08-23 14:43:40 +09:30
connect_control.h lightningd: get connection direction from connectd. 2021-03-26 13:22:33 +10:30
datastore.c datastore: turn keys into arrays 2021-08-25 10:06:31 +02:00
dual_open_control.c dual-fund psbt: hoist up single use method so we can test it 2021-09-05 14:24:14 +02:00
dual_open_control.h openingd/dualopend: remove send_msg functionality. 2021-06-03 16:16:34 +09:30
gossip_control.c channel leases: pass expected lease rates around in compat form 2021-07-20 13:28:38 -04:00
gossip_control.h
gossip_msg.c lease_rates: parse them out of node_announcements 2021-07-20 13:28:38 -04:00
gossip_msg.h lease_rates: parse them out of node_announcements 2021-07-20 13:28:38 -04:00
hsm_control.c hsmd: cleanup encrypted hsm_secret detection 2021-01-06 13:50:01 +01:00
hsm_control.h hsm: decouple hsm from wallet; init before wallet 2020-06-11 13:13:13 +02:00
htlc_end.c lightning: Add status field to htlc_in 2021-06-05 17:47:32 +09:30
htlc_end.h htlc: Keep the parsed TLV payload around with the htlc_in 2021-06-26 10:55:13 +09:30
htlc_set.c lightningd: insist on payment_secret if bit compulsory on invoices. 2021-07-14 14:38:00 -05:00
htlc_set.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
invoice.c Makefile: update spec version 2021-09-09 12:04:48 +09:30
invoice.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
io_loop_with_timers.c
io_loop_with_timers.h
json.c common/json_tok: hoist param_short_channel_id from inside lightningd/ 2021-05-22 17:53:04 +09:30
json.h common: hoist param_bitcoin_address where plugins can use it. 2020-08-11 08:39:24 +09:30
jsonrpc.c Added deprecated phase to rpc framework rules changes. 2021-08-30 12:10:37 +09:30
jsonrpc.h lightningd: infrastructure for internal notifications. 2020-10-23 13:53:16 +10:30
lightningd.c close: spec is final, it's not experimental. 2021-09-09 12:04:48 +09:30
lightningd.h close: spec is final, it's not experimental. 2021-09-09 12:04:48 +09:30
log_status.c common: convert to new wire generation style. 2020-08-25 12:53:13 +09:30
log_status.h
log.c lightningd: implement --log-timestamps=false. 2021-05-05 17:19:19 -05:00
log.h
Makefile lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
memdump.c common/memleak: hoist strmap helper from out of lightningd/memdump.c 2021-09-08 19:11:47 +02:00
memdump.h common/memleak: hoist strmap helper from out of lightningd/memdump.c 2021-09-08 19:11:47 +02:00
notification.c plugin: register shutdown instead of plugin_shutdown in notifications list 2021-09-10 07:10:05 +09:30
notification.h lightningd: call "shutdown" notification on plugins at shutdown. 2021-09-05 15:16:56 +02:00
offer.c offer / offerout: return existing if its still active. 2021-07-21 13:27:27 -04:00
onchain_control.c lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
onchain_control.h closingd: convert to new wire generation style. 2020-08-25 12:53:13 +09:30
onion_message.c lightningd: don't assume zero-length tlv fields will be NULL. 2021-07-21 13:27:27 -04:00
onion_message.h gossipd, channeld: handle onion messages in gossipd so we don't need a channel. 2021-01-09 14:34:35 +10:30
opening_common.c dualopend: remove runtime memleak in favor of at-termination. 2021-08-05 12:53:38 -05:00
opening_common.h openingd: tell lightningd what channel type we negotiated. 2021-09-13 15:53:23 +02:00
opening_control.c openingd: tell lightningd what channel type we negotiated. 2021-09-13 15:53:23 +02:00
opening_control.h openingd/dualopend: remove send_msg functionality. 2021-06-03 16:16:34 +09:30
options.c lightningd: print out support for channel_types in --list-features. 2021-09-13 15:53:23 +02:00
options.h
pay.c gossipd: remove routing, listchannels and listnodes infrastructure. 2021-06-16 10:29:17 +09:30
pay.h lightningd: don't report spurious temporary_node_failure on local failures. 2020-05-04 18:56:33 +09:30
peer_control.c lightningd: fix leak report when close called multiple times. 2021-09-15 18:23:30 +02:00
peer_control.h sendcustommsg: promote to non-dev 2021-07-14 14:39:44 -05:00
peer_htlcs.c lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
peer_htlcs.h lightningd: separate fee_states out of struct channel_info. 2020-09-23 15:51:13 +09:30
ping.c gossipd: convert wire to new scheme. 2020-08-25 12:53:13 +09:30
ping.h
plugin_control.c lightningd: call shutdown plugin when we dynamic shutdown a single one. 2021-09-05 15:16:56 +02:00
plugin_control.h plugins: add command field to subcommand output. 2021-06-25 09:49:33 +09:30
plugin_hook.c plugin: Add debug log entries when calling and returning from hooks 2021-06-05 17:47:32 +09:30
plugin_hook.h plugin: Add the plugin we're serializing for in the serializer 2021-06-05 17:47:32 +09:30
plugin.c lightningd: call "shutdown" notification on plugins at shutdown. 2021-09-05 15:16:56 +02:00
plugin.h lightningd: call "shutdown" notification on plugins at shutdown. 2021-09-05 15:16:56 +02:00
routehint.c invoice: overhaul routehints to use topology.listincoming, cleanup. 2021-06-16 10:29:17 +09:30
routehint.h invoice: overhaul routehints to use topology.listincoming, cleanup. 2021-06-16 10:29:17 +09:30
signmessage.c signmessage: use listnodes instead of gossipd_getnodes_request. 2021-06-16 10:29:17 +09:30
subd.c lightningd: don't send other messages until we've received version. 2021-04-24 13:56:58 +09:30
subd.h lightningd: don't send other messages until we've received version. 2021-04-24 13:56:58 +09:30
watch.c wallet: remove edgecase around transaction checks 2020-01-02 16:56:42 +01:00
watch.h