Skip to content

Commit 463cc22

Browse files
committed
itest: use different preimage for multirfq invoice
1 parent b72de34 commit 463cc22

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

itest/litd_custom_channels_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3531,6 +3531,12 @@ func testCustomChannelsMultiRFQ(ctx context.Context, net *NetworkHarness,
35313531
// using multiple RFQ quotes.
35323532
invAmt := int64(15_000 * 17)
35333533

3534+
var preimage lntypes.Preimage
3535+
_, err = rand.Read(preimage[:])
3536+
require.NoError(t.t, err)
3537+
3538+
payHash = preimage.Hash()
3539+
35343540
iResp, err := charlie.AddHoldInvoice(
35353541
ctx, &invoicesrpc.AddHoldInvoiceRequest{
35363542
Memo: "",
@@ -3553,7 +3559,7 @@ func testCustomChannelsMultiRFQ(ctx context.Context, net *NetworkHarness,
35533559
logBalance(t.t, nodes, assetID, "multi-rfq send in-flight")
35543560

35553561
_, err = charlie.SettleInvoice(ctx, &invoicesrpc.SettleInvoiceMsg{
3556-
Preimage: hodlInv.preimage[:],
3562+
Preimage: preimage[:],
35573563
})
35583564
require.NoError(t.t, err)
35593565

0 commit comments

Comments
 (0)