Skip to content

Commit

Permalink
Demand revoke_and_ack before more updates
Browse files Browse the repository at this point in the history
Fixes #526
  • Loading branch information
OrfeasLitos committed Jan 18, 2019
1 parent f6df488 commit 80cc605
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 02-peer-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,9 @@ fee changes).
to BIP69 lexicographic ordering of the commitment transaction.
- if it has not recently received a message from the remote node:
- SHOULD use `ping` and await the reply `pong` before sending `commitment_signed`.
- after sending a `commitment_signed` message:
- MUST NOT process any `update` message from the other party before receiving the
`revoke_and_ack` that corresponds to the `commitment_signed` sent.

A receiving node:
- once all pending updates are applied:
Expand All @@ -978,6 +981,9 @@ offline until after sending `commitment_signed`. Once
those HTLCs, and cannot fail the related incoming HTLCs until the
output HTLCs are fully resolved.

Allowing a node to make more updates before receiving `revoke_and_ack` leaves the old
state unrevoked.

### Completing the Transition to the Updated State: `revoke_and_ack`

Once the recipient of `commitment_signed` checks the signature and knows
Expand Down

0 comments on commit 80cc605

Please sign in to comment.