Skip to content

Commit ead680e

Browse files
committed
lightningd: remove withheld flag when we see sendpsbt.
Signed-off-by: Rusty Russell <[email protected]>
1 parent b74d32f commit ead680e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

wallet/walletrpc.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,8 @@ static struct command_result *json_sendpsbt(struct command *cmd,
11991199
struct channel *c;
12001200

12011201
list_for_each(&p->channels, c, list) {
1202+
bool was_withheld;
1203+
12021204
if (!c->funding_psbt)
12031205
continue;
12041206
if (psbt_is_finalized(c->funding_psbt))
@@ -1209,9 +1211,12 @@ static struct command_result *json_sendpsbt(struct command *cmd,
12091211
/* Found one! */
12101212
tal_free(c->funding_psbt);
12111213
c->funding_psbt = clone_psbt(c, sending->psbt);
1214+
was_withheld = c->withheld;
1215+
c->withheld = false;
12121216
wallet_channel_save(ld->wallet, c);
12131217
log_info(c->log,
1214-
"Funding PSBT sent, and stored for rexmit");
1218+
"Funding PSBT sent, and stored for rexmit%s",
1219+
was_withheld ? " (was withheld)" : "");
12151220
}
12161221
}
12171222

0 commit comments

Comments
 (0)