From 2e81a40d776e68c08d0790a6cc322f0394608895 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 12 Mar 2025 09:27:08 +1030 Subject: [PATCH] BOLTs: update for BOLT, which removes requirement to wait 6 blocks before sending announcement_signatures. We have a replacement quote which is suitable here, but it comes in a later BOLT commit. Signed-off-by: Rusty Russell --- Makefile | 2 +- common/gossip_constants.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cfa25b1cc..77cb5cd6d 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ CCANDIR := ccan # Where we keep the BOLT RFCs BOLTDIR := ../bolts/ -DEFAULT_BOLTVERSION := 89b99a578f52fcbabb39417f1855900e985b51db +DEFAULT_BOLTVERSION := 8707471dbc23245fb4d84c5f5babac1197f1583e # Can be overridden on cmdline. BOLTVERSION := $(DEFAULT_BOLTVERSION) diff --git a/common/gossip_constants.h b/common/gossip_constants.h index 55dea0687..725e5e8bf 100644 --- a/common/gossip_constants.h +++ b/common/gossip_constants.h @@ -29,11 +29,11 @@ #define ROUTING_OPT_HTLC_MAX_MSAT (1 << 0) #define ROUTING_OPT_DONT_FORWARD (1 << 1) -/* BOLT #7: +/* This quote comes in a later version: mark it out temporarily */ +/* BOLT-FIXME #7: * - * - MUST NOT send `announcement_signatures` messages until `channel_ready` - * has been sent and received AND the funding transaction has at least six - * confirmations. + * - If the funding transaction has less than 6 confirmations: + * - MUST NOT send `channel_announcement`. */ #define ANNOUNCE_MIN_DEPTH 6