core-lightning/channeld
Rusty Russell bee795ed68 channeld: don't do explicit state update.
We missed it in some corner cases where we crashed/were killed between
being told of the lockin and sending the channel_normal_operation message.
When we were restarted, we were told both sides were locked in already,
so we never updated the state.

Pull the entire "tell channeld" logic into channel_control.c, and make
it clear that we need to keep waching if we cant't tell channeld.  I think
we did get this correct in practice, since funding_announce_cb has the
same test, but it's better to be clear.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-04-23 20:18:15 +00:00
..
test libwally: use their secp context for all our daemons. 2018-04-03 14:03:28 +02:00
channel_wire.csv channeld: don't do explicit state update. 2018-04-23 20:18:15 +00:00
channel.c channeld: don't do explicit state update. 2018-04-23 20:18:15 +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