Skip to content

Commit

Permalink
fixup! fixup! Splice: Clone psbts instead of steal
Browse files Browse the repository at this point in the history
  • Loading branch information
ddustin committed Feb 7, 2025
1 parent 3137573 commit fd7ad1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/interactivetx.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ char *process_interactivetx_updates(const tal_t *ctx,
* Otherwise we advance `current_psbt` to `next_psbt` and begin
* processing the change set in `ictx->change_set` */
if (ictx->current_psbt != next_psbt) {
/* psbt_get_changeset requires we keep the current_psbt until
* we're done withh change_set */
tal_steal(ictx->change_set, ictx->current_psbt);
ictx->current_psbt = next_psbt;
}

Expand Down Expand Up @@ -845,6 +848,8 @@ char *process_interactivetx_updates(const tal_t *ctx,
/* Sort psbt! */
psbt_sort_by_serial_id(ictx->current_psbt);

tal_steal(ictx, ictx->current_psbt);

if (ictx->current_psbt)
clone_psbt(NULL, ictx->current_psbt);
if (ictx->desired_psbt)
Expand Down

0 comments on commit fd7ad1b

Please sign in to comment.