Skip to content

Commit 3862681

Browse files
committed
lightningd: remove withheld flag when we see sendpsbt.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 69edbb1 commit 3862681

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
@@ -1169,6 +1169,8 @@ static struct command_result *json_sendpsbt(struct command *cmd,
11691169
struct channel *c;
11701170

11711171
list_for_each(&p->channels, c, list) {
1172+
bool was_withheld;
1173+
11721174
if (!c->funding_psbt)
11731175
continue;
11741176
if (psbt_is_finalized(c->funding_psbt))
@@ -1179,9 +1181,12 @@ static struct command_result *json_sendpsbt(struct command *cmd,
11791181
/* Found one! */
11801182
tal_free(c->funding_psbt);
11811183
c->funding_psbt = clone_psbt(c, sending->psbt);
1184+
was_withheld = c->withheld;
1185+
c->withheld = false;
11821186
wallet_channel_save(ld->wallet, c);
11831187
log_info(c->log,
1184-
"Funding PSBT sent, and stored for rexmit");
1188+
"Funding PSBT sent, and stored for rexmit%s",
1189+
was_withheld ? " (was withheld)" : "");
11851190
}
11861191
}
11871192

0 commit comments

Comments
 (0)