BOLT: update comment to indicate HTLC id must be completely unique.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-07-01 11:19:28 +09:30
parent ffeab49ed3
commit 3de6ca3d0b

View File

@@ -626,8 +626,8 @@ Pkt *accept_pkt_htlc_add(struct peer *peer, const Pkt *pkt)
/* BOLT #2: /* BOLT #2:
* *
* A node MUST NOT set `id` equal to another HTLC which is in * A node MUST set `id` to a unique identifier for this HTLC
* any unrevoked commitment transaction. * amongst all past or future `update_add_htlc` messages.
*/ */
/* Note that it's not *our* problem if they do this, it's /* Note that it's not *our* problem if they do this, it's
* theirs (future confusion). Nonetheless, we detect and * theirs (future confusion). Nonetheless, we detect and