mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
df, bugfix: wait til after we've saved the channel to do this
this cleans up `cmd` and we're not done with it yet (we need it for saving the channel updates to the database)
This commit is contained in:
@@ -889,14 +889,14 @@ static void opener_commit_received(struct subd *dualopend,
|
|||||||
json_add_bool(response, "commitments_secured", true);
|
json_add_bool(response, "commitments_secured", true);
|
||||||
/* For convenience sake, we include the funding outnum */
|
/* For convenience sake, we include the funding outnum */
|
||||||
json_add_num(response, "funding_outnum", funding_outnum);
|
json_add_num(response, "funding_outnum", funding_outnum);
|
||||||
was_pending(command_success(uc->fc->cmd, response));
|
|
||||||
|
|
||||||
/* Now that we've got the final PSBT, save it */
|
/* Now that we've got the final PSBT, save it */
|
||||||
channel->psbt = tal_steal(channel, psbt);
|
channel->psbt = tal_steal(channel, psbt);
|
||||||
wallet_channel_save(uc->fc->cmd->ld->wallet, channel);
|
wallet_channel_save(uc->fc->cmd->ld->wallet, channel);
|
||||||
|
|
||||||
peer_start_channeld(channel, pps,
|
peer_start_channeld(channel, pps,
|
||||||
NULL, psbt, false);
|
NULL, psbt, false);
|
||||||
|
|
||||||
|
was_pending(command_success(uc->fc->cmd, response));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
|
|||||||
Reference in New Issue
Block a user