|
@ -2098,7 +2098,7 @@ static void check_current_dataloss_fields(struct peer *peer, |
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
|
/* BOLT #2:
|
|
|
/* BOLT #2:
|
|
|
* - if `next_remote_revocation_number` equals 0: |
|
|
* - if `next_revocation_number` equals 0: |
|
|
* - MUST set `your_last_per_commitment_secret` to all zeroes |
|
|
* - MUST set `your_last_per_commitment_secret` to all zeroes |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
@ -2231,7 +2231,7 @@ static void peer_reconnect(struct peer *peer, |
|
|
* - MUST set `next_revocation_number` to the commitment number |
|
|
* - MUST set `next_revocation_number` to the commitment number |
|
|
* of the next `revoke_and_ack` message it expects to receive. |
|
|
* of the next `revoke_and_ack` message it expects to receive. |
|
|
* - if it supports `option_data_loss_protect`: |
|
|
* - if it supports `option_data_loss_protect`: |
|
|
* - if `next_remote_revocation_number` equals 0: |
|
|
* - if `next_revocation_number` equals 0: |
|
|
* - MUST set `your_last_per_commitment_secret` to all zeroes |
|
|
* - MUST set `your_last_per_commitment_secret` to all zeroes |
|
|
* - otherwise: |
|
|
* - otherwise: |
|
|
* - MUST set `your_last_per_commitment_secret` to the last |
|
|
* - MUST set `your_last_per_commitment_secret` to the last |
|
|