mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-02 19:44:03 +02:00
multi: update PaymentAddr to use fn.Option
Since it is allowed to not be set and so can lead to nil deref panics if it is a pointer.
This commit is contained in:
@ -344,7 +344,7 @@ func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi,
|
||||
// record. If it has a blinded path though, then we
|
||||
// can split. Split payments to blinded paths won't have
|
||||
// MPP records.
|
||||
if p.payment.PaymentAddr == nil &&
|
||||
if p.payment.PaymentAddr.IsNone() &&
|
||||
p.payment.BlindedPathSet == nil {
|
||||
|
||||
p.log.Debugf("not splitting because payment " +
|
||||
|
Reference in New Issue
Block a user