From ead680eb7b27b498bd42955725a826de105bb622 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 18 Nov 2025 22:24:33 +1030 Subject: [PATCH] lightningd: remove withheld flag when we see sendpsbt. Signed-off-by: Rusty Russell --- wallet/walletrpc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wallet/walletrpc.c b/wallet/walletrpc.c index 31b5075cc..92f979a59 100644 --- a/wallet/walletrpc.c +++ b/wallet/walletrpc.c @@ -1199,6 +1199,8 @@ static struct command_result *json_sendpsbt(struct command *cmd, struct channel *c; list_for_each(&p->channels, c, list) { + bool was_withheld; + if (!c->funding_psbt) continue; if (psbt_is_finalized(c->funding_psbt)) @@ -1209,9 +1211,12 @@ static struct command_result *json_sendpsbt(struct command *cmd, /* Found one! */ tal_free(c->funding_psbt); c->funding_psbt = clone_psbt(c, sending->psbt); + was_withheld = c->withheld; + c->withheld = false; wallet_channel_save(ld->wallet, c); log_info(c->log, - "Funding PSBT sent, and stored for rexmit"); + "Funding PSBT sent, and stored for rexmit%s", + was_withheld ? " (was withheld)" : ""); } }