core-lightning/channeld
Rusty Russell 9f175deecd lightningd: update feerate upon receiving revoke_and_ack from fundee.
1. l1     update_fee ->    l2
2. l1 commitment_signed -> l2 (using new feerate)
3. l1  <- revoke_and_ack   l2
4. l1 <- commitment_signed l2 (using new feerate)
5. l1  -> revoke_and_ack   l2

When we break the connection after #3, the reconnection causes #4 to
be retransmitted, but it turns out l1 wasn't telling the master to set
the local feerate until it received the commitment_signed, so on
reconnect it uses the old feerate, with predictable results (bad
signature).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-08-22 18:54:53 +02:00
..
test Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02:00
channel.c lightningd: update feerate upon receiving revoke_and_ack from fundee. 2018-08-22 18:54:53 +02:00
channel_wire.csv lightningd: update feerate upon receiving revoke_and_ack from fundee. 2018-08-22 18:54:53 +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.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
full_channel_error.h channeld: map htlc add/remove errors to names. 2018-02-19 02:56:51 +00:00
Makefile channeld: send our own pings whenever we indicate we want to send a commitment. 2018-08-10 12:46:45 +02:00