core-lightning/channeld
Rusty Russell 6aed936799 channeld: check option_data_loss_protect fields.
Firstly, if they claim to know a future value, we ask the HSM; if
they're right, we tell master what the per-commitment-secret it gave
us (we have no way to validate this, though) and it will not broadcast
a unilateral (knowing it will cause them to use a penalty tx!).

Otherwise, we check the results they sent were valid.  The spec says
to do this (and close the channel if it's wrong!), because otherwise they
could continually lie and give us a bad per-commitment-secret when we
actually need it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-08-23 14:46:22 +02:00
..
test Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02:00
channel_wire.csv lightningd: message for channeld to tell us that channel risks penalty. 2018-08-23 14:46:22 +02:00
channel.c channeld: check option_data_loss_protect fields. 2018-08-23 14:46:22 +02:00
channeld_htlc.h channeld: always receive and maintain short_channel_id of failing channel. 2018-07-27 14:12:00 +02:00
commit_tx.c Remove dead stores 2018-07-31 12:45:02 +02: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 Use snprintf(...) instead of sprintf(...) 2018-08-02 16:14:21 +09:30
full_channel.h channeld: make channel_fulfill_htlc return the HTLC it fulfulled. 2018-07-08 15:56:34 +02:00
Makefile channeld: send our own pings whenever we indicate we want to send a commitment. 2018-08-10 12:46:45 +02:00