mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 10:35:32 +02:00
routing/payment_lifecycle: use ShardTracker to track shards
We'll let the payment's lifecycle register each shard it's sending with the ShardTracker, canceling failed shards. This will be the foundation for correct AMP derivation for each shard we'll send.
This commit is contained in:
@ -194,6 +194,8 @@ func newRoute(sourceVertex route.Vertex,
|
||||
}
|
||||
|
||||
// Otherwise attach the mpp record if it exists.
|
||||
// TODO(halseth): move this to payment life cycle,
|
||||
// where AMP options are set.
|
||||
if finalHop.paymentAddr != nil {
|
||||
mpp = record.NewMPP(
|
||||
finalHop.totalAmt,
|
||||
|
Reference in New Issue
Block a user