File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ CCANDIR := ccan
24
24
25
25
# Where we keep the BOLT RFCs
26
26
BOLTDIR := ../lightning-rfc/
27
- BOLTVERSION := dcf6b0f359c230ef140e336011890c96eea576fa
27
+ BOLTVERSION := 920e51986d654b78d1ec2afc18152c9986f52a9d
28
28
29
29
-include config.vars
30
30
Original file line number Diff line number Diff line change @@ -2409,6 +2409,10 @@ static void peer_reconnect(struct peer *peer,
2409
2409
* number of the last `revoke_and_ack` the receiving node sent, AND
2410
2410
* the receiving node hasn't already received a `closing_signed`:
2411
2411
* - MUST re-send the `revoke_and_ack`.
2412
+ * - if it has previously sent a `commitment_signed` that needs to be
2413
+ * retransmitted:
2414
+ * - MUST retransmit `revoke_and_ack` and `commitment_signed` in the
2415
+ * same relative order as initially transmitted.
2412
2416
* - otherwise:
2413
2417
* - if `next_revocation_number` is not equal to 1 greater
2414
2418
* than the commitment number of the last `revoke_and_ack` the
@@ -2504,8 +2508,12 @@ static void peer_reconnect(struct peer *peer,
2504
2508
? NULL
2505
2509
: & remote_current_per_commitment_point );
2506
2510
2507
- /* We have to re-send in the same order we sent originally:
2508
- * revoke_and_ack (usually) alters our next commitment. */
2511
+ /* BOLT #2:
2512
+ * - if it has previously sent a `commitment_signed` that needs to be
2513
+ * retransmitted:
2514
+ * - MUST retransmit `revoke_and_ack` and `commitment_signed` in the
2515
+ * same relative order as initially transmitted.
2516
+ */
2509
2517
if (retransmit_revoke_and_ack && !peer -> last_was_revoke )
2510
2518
resend_revoke (peer );
2511
2519
You can’t perform that action at this time.
0 commit comments