core-lightning/channeld
Rusty Russell bc4809aa85 gossipd: make sure master only ever sees one active connection.
When we get a reconnection, kill the current remote peer, and wait for the
master to tell us it's dead.  Then we hand it the new peer.

Previously, we would end up with gossipd holding multiple peers, and
the logging was really hard to interpret; I'm not completely convinced
that we did the right thing when one terminated, either.

Note that this now means we can have peers with neither ->local nor ->remote
populated, so we check that more carefully.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-04-26 05:47:57 +00:00
..
test libwally: use their secp context for all our daemons. 2018-04-03 14:03:28 +02:00
channel_wire.csv gossipd: drain fd instead of passing around gossip index. 2018-04-26 05:47:57 +00:00
channel.c gossipd: make sure master only ever sees one active connection. 2018-04-26 05:47:57 +00:00
channeld_htlc.h Remove unused functions not covered by unit tests 2018-03-28 11:22:05 +02:00
commit_tx.c utils: remove tal_tmpctx altogether, use global. 2018-03-16 00:16:10 +00:00
commit_tx.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00
full_channel_error.h channeld: map htlc add/remove errors to names. 2018-02-19 02:56:51 +00:00
full_channel.c utils: remove tal_tmpctx altogether, use global. 2018-03-16 00:16:10 +00:00
full_channel.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00
Makefile common/daemon: common routines for all daemons. 2018-04-03 14:03:28 +02:00