1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 10:00:04 +01:00

BOLT 2: add a requirement for next_local_commitment_number.

This commit is contained in:
Hiroki Gondo 2018-12-03 17:48:38 +09:00 committed by Rusty Russell
parent 655a8b3eae
commit f85e75be65

View File

@ -1176,6 +1176,9 @@ A node:
commitment number of the last `commitment_signed` message the receiving commitment number of the last `commitment_signed` message the receiving
node has sent: node has sent:
- SHOULD fail the channel. - SHOULD fail the channel.
- if it has not sent `commitment_signed`, AND `next_local_commitment_number`
is not equal to 1:
- SHOULD fail the channel.
- if `next_remote_revocation_number` is equal to the commitment number of - if `next_remote_revocation_number` is equal to the commitment number of
the last `revoke_and_ack` the receiving node sent, AND the receiving node the last `revoke_and_ack` the receiving node sent, AND the receiving node
hasn't already received a `closing_signed`: hasn't already received a `closing_signed`: