mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-22 15:57:49 +02:00
multi: Fix final hop payload size for AMP payments.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user