mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 14:44:22 +01:00
routing+routerrpc: rename max_shards to max_parts
Don't introduce a new term and align with the P in MPP.
This commit is contained in:
@@ -263,11 +263,11 @@ func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi,
|
||||
}
|
||||
|
||||
// No splitting if this is the last shard.
|
||||
isLastShard := activeShards+1 >= p.payment.MaxShards
|
||||
isLastShard := activeShards+1 >= p.payment.MaxParts
|
||||
if isLastShard {
|
||||
p.log.Debugf("not splitting because shard "+
|
||||
"limit %v has been reached",
|
||||
p.payment.MaxShards)
|
||||
p.payment.MaxParts)
|
||||
|
||||
return nil, errNoPathFound
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user