From 1fa53538c3d266da539f37303b1edd503fdf89f2 Mon Sep 17 00:00:00 2001 From: Jonathan Harvey-Buschel Date: Mon, 25 Nov 2024 16:46:57 -0500 Subject: [PATCH] itest: add AltLeaves in PSBT full-value tests --- itest/psbt_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/itest/psbt_test.go b/itest/psbt_test.go index 3b3665a44..8fc82d5bf 100644 --- a/itest/psbt_test.go +++ b/itest/psbt_test.go @@ -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.