Skip to content

Commit

Permalink
itest: add AltLeaves in PSBT full-value tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jharveyb committed Dec 5, 2024
1 parent ec45de9 commit 1fa5353
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions itest/psbt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,11 @@ func runPsbtInteractiveFullValueSendTest(ctxt context.Context, t *harnessTest,

vPkt := tappsbt.ForInteractiveSend(
id, fullAmt, receiverScriptKey, 0, 0, 0,
receiverAnchorIntKeyDesc, asset.V0,
chainParams,
receiverAnchorIntKeyDesc, asset.V0, chainParams,
)
altLeaves := asset.RandAltLeaves(t.t, true)
err := vPkt.Outputs[0].SetAltLeaves(altLeaves)
require.NoError(t.t, err)

// Next, we'll attempt to complete a transfer with PSBTs from
// our sender node to our receiver, using the full amount.
Expand Down

0 comments on commit 1fa5353

Please sign in to comment.