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:
Carla Kirk-Cohen
2022-12-15 16:48:56 -05:00
committed by Olaoluwa Osuntokun
parent 48e36d93d4
commit c9609b8214
7 changed files with 501 additions and 18 deletions

View File

@@ -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")