multi: Fix final hop payload size for AMP payments.

This commit is contained in:
ziggie committed 2024-02-03 12:16:06 +00:00
1 parent ff30ff40bf
commit 4732c09a26
7 files changed
+44 -1

No files matched your search

+3
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)