From 3de6ca3d0ba73c2ee95e1df3f227165a68c1c26c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 1 Jul 2016 11:19:28 +0930 Subject: [PATCH] BOLT: update comment to indicate HTLC id must be completely unique. Signed-off-by: Rusty Russell --- daemon/packets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/packets.c b/daemon/packets.c index a9b36445e..6c06bccfd 100644 --- a/daemon/packets.c +++ b/daemon/packets.c @@ -626,8 +626,8 @@ Pkt *accept_pkt_htlc_add(struct peer *peer, const Pkt *pkt) /* BOLT #2: * - * A node MUST NOT set `id` equal to another HTLC which is in - * any unrevoked commitment transaction. + * A node MUST set `id` to a unique identifier for this HTLC + * amongst all past or future `update_add_htlc` messages. */ /* Note that it's not *our* problem if they do this, it's * theirs (future confusion). Nonetheless, we detect and