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

@@ -967,6 +967,9 @@ func (r *RouterBackend) extractIntentFromSendRequest(
// pseudo-reusable, e.g. the invoice parameters are
// reused (amt, cltv, hop hints, etc) even though the
// payments will share different payment hashes.
//
// NOTE: This will only work when the peer has
// spontaneous AMP payments enabled.
if len(rpcPayReq.PaymentAddr) > 0 {
var addr [32]byte
copy(addr[:], rpcPayReq.PaymentAddr)