routing: allow splitting for AMP or MPP
This commit is contained in:
3 files changed
+8
-5
No files matched your search
@@ -296,9 +296,12 @@ func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi,
|
||||
return nil, errNoPathFound
|
||||
}
|
||||
|
||||
if !p.payment.DestFeatures.HasFeature(lnwire.MPPOptional) {
|
||||
destFeatures := p.payment.DestFeatures
|
||||
if !destFeatures.HasFeature(lnwire.MPPOptional) &&
|
||||
!destFeatures.HasFeature(lnwire.AMPOptional) {
|
||||
|
||||
p.log.Debug("not splitting because " +
|
||||
"destination doesn't declare MPP")
|
||||
"destination doesn't declare MPP or AMP")
|
||||
|
||||
return nil, errNoPathFound
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user