Merge pull request #5111 from yyforyongyu/fix-feature-check
routing: check payment.DestFeatures against nil
This commit is contained in:
commit
53c1175407
@ -290,6 +290,12 @@ func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi,
|
||||
return nil, errNoPathFound
|
||||
}
|
||||
|
||||
if p.payment.DestFeatures == nil {
|
||||
p.log.Debug("Not splitting because " +
|
||||
"destination DestFeatures is nil")
|
||||
return nil, errNoPathFound
|
||||
}
|
||||
|
||||
if !p.payment.DestFeatures.HasFeature(lnwire.MPPOptional) {
|
||||
p.log.Debug("not splitting because " +
|
||||
"destination doesn't declare MPP")
|
||||
|
Loading…
Reference in New Issue
Block a user