Files
pallectrum/electrum
SomberNight ef4477a930 lnpeer.reestablish_chan: enforce order of replaying commitsig/revack
When replaying messages during channel-reestablishment,
previously we first resent all update messages, along with potential commitment_signed messages,
and then we potentially resent a single revoke_and_ack.

This can result in incorrect behaviour in case both a commitment_signed and a revoke_and_ack needs to be resent.
When replaying messages, the relative order of commitment_signed and revoke_and_messages needs to be preserved.
(the order of updates (htlc/fee) in relation to the revack messages does not matter)

implements https://github.com/lightning/bolts/pull/810

The logic here is somewhat based on what c-lightning does:
01e5f1886e/channeld/channeld.c (L3059)
2022-05-25 19:44:44 +02:00
..
2022-05-24 11:48:14 +02:00
2021-04-30 19:43:53 +02:00
2022-04-11 17:40:22 +02:00
2021-03-21 00:36:23 -04:00
2021-04-08 19:49:43 +02:00
2022-04-11 17:40:22 +02:00
2022-04-20 12:48:22 +02:00
2021-03-21 00:36:23 -04:00
2021-07-15 14:52:25 +00:00
2021-07-16 11:27:36 +02:00
2021-03-21 00:36:23 -04:00
2021-03-21 00:36:23 -04:00
2022-04-11 17:40:22 +02:00
2022-05-24 02:39:11 +00:00
2021-05-06 19:47:22 +09:00
2021-06-22 19:24:16 +02:00
2022-05-19 19:30:11 +02:00
2022-03-24 15:59:14 +01:00