From 4f1a1ec04400a782ef14f261d42744ec01d4ed1d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 30 Jun 2016 09:11:11 +0930 Subject: [PATCH] BOLT: update for latest onchain draft. It now notes that node may already know the redemption preimage, update to fix. Signed-off-by: Rusty Russell --- daemon/peer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/daemon/peer.c b/daemon/peer.c index 212922377..d1590341e 100644 --- a/daemon/peer.c +++ b/daemon/peer.c @@ -1633,10 +1633,9 @@ static void resolve_our_htlcs(struct peer *peer, /* BOLT #onchain: * - * If the node receives a redemption preimage for a *commitment tx* output it - * was offered, it MUST *resolve* the output by spending it using the - * preimage. Otherwise, the other node could spend it once it as *timed out* - * as above. + * If the node receives... a redemption preimage for an unresolved *commitment + * tx* output it was offered, it MUST *resolve* the output by spending it using + * the preimage. */ void our_htlc_fulfilled(struct peer *peer, struct htlc *htlc, const struct rval *preimage)