multi: pass private, routehints from loopcli - loopd - loop server

This commit passes routehints all the way from when/if the user passes
them from the cli all the way to the backend loop server. If private is
used, this commit passes that boolean down to different stages, where it
is then converted into routehints.

main: add --private and --route_hints to quote

Adds --private and --route_hints flags to quote cli
This commit is contained in:
Harsha Goli 2021-10-19 18:05:59 -04:00
parent 4299147895
commit f1a7d8fb49
No known key found for this signature in database
GPG key ID: 90E00CCB1C74C611
11 changed files with 654 additions and 432 deletions

View file

@ -207,6 +207,15 @@ type LoopInRequest struct {
// initiated the swap (loop CLI, autolooper, LiT UI and so on) and is
// appended to the user agent string.
Initiator string
// Private indicates whether the destination node should be considered
// private. In which case, loop will generate hophints to assist with
// probing and payment.
Private bool
// RouteHints are optional route hints to reach the destination through
// private channels.
RouteHints [][]zpay32.HopHint
}
// LoopInTerms are the server terms on which it executes loop in swaps.
@ -253,6 +262,11 @@ type LoopInQuoteRequest struct {
// RouteHints are optional route hints to reach the destination through
// private channels.
RouteHints [][]zpay32.HopHint
// Private indicates whether the destination node should be considered
// private. In which case, loop will generate hophints to assist with
// probing and payment.
Private bool
}
// LoopInQuote contains estimates for the fees making up the total swap cost