From df80a2c056a9638ec84a8a95b8ea5aee992bedc8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 12 Sep 2023 13:53:19 +0930 Subject: [PATCH] doc: update to BOLT 3747ba83022cd385093df2696ed342f1e41e31b3 "Remove requirements to disconnect on warnings" Now we don't do that anymore (at least, for sending) we can update bolt quotes to match. Signed-off-by: Rusty Russell --- Makefile | 2 +- connectd/multiplex.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index edda401b6..e0c3d47c9 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ CCANDIR := ccan # Where we keep the BOLT RFCs BOLTDIR := ../bolts/ -DEFAULT_BOLTVERSION := 50b2df24a27879e8329712c275db78876fd022fe +DEFAULT_BOLTVERSION := 3747ba83022cd385093df2696ed342f1e41e31b3 # Can be overridden on cmdline. BOLTVERSION := $(DEFAULT_BOLTVERSION) diff --git a/connectd/multiplex.c b/connectd/multiplex.c index 1864b3784..5f535f839 100644 --- a/connectd/multiplex.c +++ b/connectd/multiplex.c @@ -448,12 +448,8 @@ static struct io_plan *encrypt_and_send(struct peer *peer, #endif set_urgent_flag(peer, is_urgent(type)); - /* BOLT #1: - * - * A sending node: - *... - * - MAY close the connection after sending. - */ + /* We are no longer required to do this, but we do disconnect + * after sending an error or warning. */ if (type == WIRE_ERROR || type == WIRE_WARNING) { /* Might already be draining... */ if (!peer->draining)