core-lightning/channeld
Rusty Russell 8a16963f22 channeld: get told when announce depth already reached.
If channeld dies for some reason (eg, reconnect) and we didn't yet announce
the channel, we can miss doing so.  This is unusual, because if lightningd
restarts it rearms the callback which gives us funding_locked, so it only
happens if just channel dies before sending the announcement message.

This problem applies to both temporary announcement (for gossipd) and
the real one.  For the temporary one, simply re-send on startup, and
remote the error msg gossipd gives if it sees a second one.  For the
real one, we need a flag to tell us the depth is sufficient; the peer
will ignore re-sends anyway.

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 channeld: get told when announce depth already reached. 2018-04-26 05:47:57 +00:00
channel.c channeld: get told when announce depth already reached. 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