mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 14:22:49 +02:00
multi: add blinded route to route requests expressed as hints
Add the option to include a blinded route in a route request (exclusive to including hop hints, because it's incongruous to include both), and express the route as a chain of hop hints. Using a chain of hints over a single hint to represent the whole path allows us to re-use our route construction to fill in a lot of the path on our behalf.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
48e36d93d4
commit
c9609b8214
@@ -2293,7 +2293,7 @@ func TestPathFindSpecExample(t *testing.T) {
|
||||
const amt lnwire.MilliSatoshi = 4999999
|
||||
req, err := NewRouteRequest(
|
||||
bobNode.PubKeyBytes, &carol, amt, 0, noRestrictions, nil, nil,
|
||||
MinCLTVDelta,
|
||||
nil, MinCLTVDelta,
|
||||
)
|
||||
require.NoError(t, err, "invalid route request")
|
||||
|
||||
@@ -2346,7 +2346,7 @@ func TestPathFindSpecExample(t *testing.T) {
|
||||
// We'll now request a route from A -> B -> C.
|
||||
req, err = NewRouteRequest(
|
||||
source.PubKeyBytes, &carol, amt, 0, noRestrictions, nil, nil,
|
||||
MinCLTVDelta,
|
||||
nil, MinCLTVDelta,
|
||||
)
|
||||
require.NoError(t, err, "invalid route request")
|
||||
|
||||
|
Reference in New Issue
Block a user