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

Clarify behavior of id field in update_add_htlc

Clarify that the id value is not reset after an update is complete
This commit is contained in:
Orfeas Stefanos Thyfronitis Litos 2019-01-15 16:23:51 +00:00 committed by Christian Decker
parent a2480ca138
commit 945051e4b0

View File

@ -794,6 +794,9 @@ Fees") while maintaining its channel reserve.
- MUST set `id` to 0.
- MUST increase the value of `id` by 1 for each successive offer.
`id` MUST NOT be reset to 0 after the update is complete (i.e. after `revoke_and_ack` has
been received). It MUST continue incrementing instead.
A receiving node:
- receiving an `amount_msat` equal to 0, OR less than its own `htlc_minimum_msat`:
- SHOULD fail the channel.