mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 07:42:39 +02:00
routing: introduce routing hints to lightning payments
In this commit, we add a new field of routing hints to payments over the Lightning Network. These routing hints can later be used within the path finding algorithm in order to craft a path that will reach the destination succesfully.
This commit is contained in:
@@ -1482,6 +1482,16 @@ type LightningPayment struct {
|
||||
// indefinitely.
|
||||
PayAttemptTimeout time.Duration
|
||||
|
||||
// RouteHints represents the different routing hints that can be used to
|
||||
// assist a payment in reaching its destination successfully. These
|
||||
// hints will act as intermediate hops along the route.
|
||||
//
|
||||
// NOTE: This is optional unless required by the payment. When providing
|
||||
// multiple routes, ensure the hop hints within each route are chained
|
||||
// together and sorted in forward order in order to reach the
|
||||
// destination successfully.
|
||||
RouteHints [][]HopHint
|
||||
|
||||
// TODO(roasbeef): add e2e message?
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user