@@ -1445,10 +1445,10 @@ A node:
1445
1445
- if ` next_commitment_number ` is not 1 greater than the
1446
1446
commitment number of the last ` commitment_signed ` message the receiving
1447
1447
node has sent:
1448
- - SHOULD send an ` error ` and fail the channel .
1448
+ - SHOULD send an ` error ` .
1449
1449
- if it has not sent ` commitment_signed ` , AND ` next_commitment_number `
1450
1450
is not equal to 1:
1451
- - SHOULD send an ` error ` and fail the channel .
1451
+ - SHOULD send an ` error ` .
1452
1452
- if ` next_revocation_number ` is equal to the commitment number of
1453
1453
the last ` revoke_and_ack ` the receiving node sent, AND the receiving node
1454
1454
hasn't already received a ` closing_signed ` :
@@ -1460,10 +1460,10 @@ A node:
1460
1460
- otherwise:
1461
1461
- if ` next_revocation_number ` is not equal to 1 greater than the
1462
1462
commitment number of the last ` revoke_and_ack ` the receiving node has sent:
1463
- - SHOULD send an ` error ` and fail the channel .
1463
+ - SHOULD send an ` error ` .
1464
1464
- if it has not sent ` revoke_and_ack ` , AND ` next_revocation_number `
1465
1465
is not equal to 0:
1466
- - SHOULD send an ` error ` and fail the channel .
1466
+ - SHOULD send an ` error ` .
1467
1467
1468
1468
A receiving node:
1469
1469
- if ` option_static_remotekey ` applies to the commitment transaction:
@@ -1472,9 +1472,10 @@ A node:
1472
1472
` next_revocation_number ` minus 1:
1473
1473
- MUST NOT broadcast its commitment transaction.
1474
1474
- SHOULD send an ` error ` to request the peer to fail the channel.
1475
+ - if ` your_last_per_commitment_secret ` does not match the expected values:
1476
+ - SHOULD send an ` error ` and fail the channel (the sending node is lying).
1475
1477
- otherwise:
1476
- - if ` your_last_per_commitment_secret ` does not match the expected values:
1477
- - SHOULD send an ` error ` and fail the channel.
1478
+ - SHOULD send an ` error ` .
1478
1479
- otherwise, if it supports ` option_data_loss_protect ` :
1479
1480
- if ` next_revocation_number ` is greater than expected above, AND
1480
1481
` your_last_per_commitment_secret ` is correct for that
@@ -1483,9 +1484,10 @@ A node:
1483
1484
- SHOULD send an ` error ` to request the peer to fail the channel.
1484
1485
- SHOULD store ` my_current_per_commitment_point ` to retrieve funds
1485
1486
should the sending node broadcast its commitment transaction on-chain.
1486
- - otherwise (` your_last_per_commitment_secret ` or ` my_current_per_commitment_point `
1487
- do not match the expected values):
1488
- - SHOULD send an ` error ` and fail the channel.
1487
+ - if ` your_last_per_commitment_secret ` does not match the expected values:
1488
+ - SHOULD send an ` error ` and fail the channel (the sending node is lying).
1489
+ - otherwise:
1490
+ - SHOULD send an ` error ` .
1489
1491
1490
1492
A node:
1491
1493
- MUST NOT assume that previously-transmitted messages were lost,
0 commit comments