From 36bf037ca7bc9e230452e69b69c55021180cd28c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 22 Feb 2021 12:28:14 +1030 Subject: [PATCH] doc: update BOLT quotes (to include preimage leakage). Signed-off-by: Rusty Russell --- Makefile | 2 +- lightningd/onchain_control.c | 1 + onchaind/onchaind.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 41fe136f2..496416bdc 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ CCANDIR := ccan # Where we keep the BOLT RFCs BOLTDIR := ../lightning-rfc/ -BOLTVERSION := 01f29bf9feca66476423676365187e2175a3934b +BOLTVERSION := dcf6b0f359c230ef140e336011890c96eea576fa -include config.vars diff --git a/lightningd/onchain_control.c b/lightningd/onchain_control.c index bd90e726f..c683c9a0b 100644 --- a/lightningd/onchain_control.c +++ b/lightningd/onchain_control.c @@ -37,6 +37,7 @@ static void onchaind_tell_fulfill(struct channel *channel) * for which it has committed to an outgoing HTLC: * - MUST *resolve* the output by spending it, using the * HTLC-success transaction. + * - MUST NOT reveal its own preimage when it's not the final recipient... * - MUST resolve the output of that HTLC-success transaction. * - otherwise: * - if the *remote node* is NOT irrevocably committed to diff --git a/onchaind/onchaind.c b/onchaind/onchaind.c index ccdbdf836..5257e5779 100644 --- a/onchaind/onchaind.c +++ b/onchaind/onchaind.c @@ -2009,6 +2009,7 @@ static void tx_new_depth(struct tracked_output **outs, * outgoing HTLC: * - MUST *resolve* the output by spending it, using the HTLC-success * transaction. + * - MUST NOT reveal its own preimage when it's not the final recipient... * - MUST resolve the output of that HTLC-success transaction. * - otherwise: * - if the *remote node* is NOT irrevocably committed to the HTLC: