rgb-cln/lightningd
Rusty Russell 871d0b1d74 lightningd: simplify peer destruction.
We have to do a dance when we get a reconnect in openingd, because we
don't normally expect to free both owner and peer.  It's a layering
violation: freeing a peer should clean up the owner's pointer to it,
to avoid a double free, and we can eliminate this dance.

The free order is now different, and the test_reconnect_openingd was
overprecise.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-10-20 18:31:32 +02:00
..
test Update BOLT references with typo fixes. 2017-10-10 20:17:37 +02:00
.gitignore Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
Makefile gossipd: fail peer for the master daemon. 2017-10-20 18:31:32 +02:00
bitcoind.c bitcoind: handle up to 60 seconds of outage. 2017-09-29 14:39:35 +02:00
bitcoind.h bitcoind: handle up to 60 seconds of outage. 2017-09-29 14:39:35 +02:00
build_utxos.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
build_utxos.h common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
chaintopology.c bitcoind: wait for startup. 2017-09-29 14:39:35 +02:00
chaintopology.h external: new subdirectory for all external libraries and submodules. 2017-08-29 17:54:14 +02:00
dev_ping.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
dns.c lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
dns.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
gossip_control.c gossipd: receive hsm fd from master. 2017-10-20 18:31:32 +02:00
gossip_control.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
gossip_msg.c gossip: fix address descriptor handling. 2017-09-03 02:01:54 +02:00
gossip_msg.h gossip: make rpc responses correct. 2017-09-03 02:01:54 +02:00
hsm_control.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
hsm_control.h lightningd/hsm_control: use a simple fd for HSM. 2017-06-27 10:25:53 +09:30
htlc_end.c wallet: Store HTLCs to the wallet 2017-10-09 11:51:13 +10:30
htlc_end.h htlcs: Needed to add origin_htlc_id to outgoing HTLCs 2017-10-09 11:51:13 +10:30
invoice.c wallet: Add invoice removal support 2017-10-09 11:51:13 +10:30
invoice.h wallet: Wiring in invoice persistence into JSON-RPC and master 2017-10-09 11:51:13 +10:30
jsonrpc.c jsonrpc: Make sure we handle the case where jcon outlives command 2017-09-29 10:06:56 +09:30
jsonrpc.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
lightningd.c htlcs: Remove in-memory htlc_stubs 2017-10-10 23:59:34 +00:00
lightningd.h cli: Add --no-reconnect cli flag 2017-10-09 11:25:08 +10:30
log.c common/io_debug: replacement for ccan/io's poll which does sanity checks. 2017-09-29 10:20:08 +09:30
log.h lightningd: search path for our own directory. 2017-09-15 13:44:34 +02:00
netaddr.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
netaddr.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
new_connection.c gossipd: receive hsm fd from master. 2017-10-20 18:31:32 +02:00
new_connection.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
opt_time.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
opt_time.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
options.c options: Move non-legacy options into options.c 2017-10-09 11:25:08 +10:30
options.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
pay.c jsonrpc: use-after-free bug due to unspecified free behavior 2/2 2017-09-29 10:06:56 +09:30
pay.h lightningd: unify pay vs forward path when handling failures. 2017-06-23 09:29:42 +09:30
peer_control.c lightningd: simplify peer destruction. 2017-10-20 18:31:32 +02:00
peer_control.h htlcs: Remove in-memory htlc_stubs 2017-10-10 23:59:34 +00:00
peer_htlcs.c Revert "gossip: send the *other* node's cltv_expiry_delta in channel_announce." 2017-10-11 11:54:50 +02:00
peer_htlcs.h Revert "Send/receive cltv_expiry_delta in open/accept channel." 2017-10-11 11:54:50 +02:00
peer_state.h onchain: add initial onchain state. 2017-09-28 13:07:05 +09:30
subd.c lightningd: simplify peer destruction. 2017-10-20 18:31:32 +02:00
subd.h subd: remove context arg, as we're always owned by lightningd. 2017-09-28 15:37:43 +02:00
watch.c watch: remove peer_debug helper. 2017-09-28 13:07:05 +09:30
watch.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00