multi: Fix final hop payload size for AMP payments.

This commit is contained in:
ziggie
2024-02-03 12:09:11 +00:00
parent ff30ff40bf
commit 4732c09a26
7 changed files with 44 additions and 1 deletions

View File

@@ -104,6 +104,10 @@ func testSendPaymentAMPInvoiceCase(ht *lntest.HarnessTest,
// expect an extra invoice to appear in the ListInvoices response, since
// a new invoice will be JIT inserted under a different payment address
// than the one in the invoice.
//
// NOTE: This will only work when the peer has spontaneous AMP payments
// enabled otherwise no invoice under a different payment_addr will be
// found.
var (
expNumInvoices = 1
externalPayAddr []byte