From 031524fab5472d7be84b8f84f2b76435d5fd5fd3 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 29 Jan 2024 10:04:16 +1030 Subject: [PATCH] openingd: correctly mark channel type zeroconf if negotiated and they offered minimum_depth=0. Signed-off-by: Rusty Russell Changelog-Fixed: `channel_type` reflects option_zeroconf if explicitly negotiated. --- openingd/openingd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openingd/openingd.c b/openingd/openingd.c index 51b2eced1..1ad35c11a 100644 --- a/openingd/openingd.c +++ b/openingd/openingd.c @@ -568,6 +568,9 @@ static u8 *funder_channel_start(struct state *state, u8 channel_flags, status_debug( "We negotiated option_zeroconf, using our minimum_depth=%d", state->minimum_depth); + /* We set this now to show we're zeroconf */ + if (their_mindepth == 0) + channel_type_set_zeroconf(state->channel_type); } else { state->minimum_depth = their_mindepth; }