loop: integrate the probe api with loop-in quote

In this commit we add a call to the new probe endpoint directly into the
loop-in quote call. Furthermore we add an option to include private
channels in the loopin swap payment request. This is also useful for when
users quote/probe directly using the client API and specify hop hints.
This commit is contained in:
Andras Banki-Horvath 2021-07-28 18:11:45 +02:00
parent f786aaa016
commit 0e7ed91d5d
No known key found for this signature in database
GPG key ID: 80E5375C094198D8
8 changed files with 368 additions and 311 deletions

View file

@ -565,6 +565,7 @@ func (s *Client) LoopInQuote(ctx context.Context,
quote, err := s.Server.GetLoopInQuote(
ctx, request.Amount, s.lndServices.NodePubkey, request.LastHop,
request.RouteHints,
)
if err != nil {
return nil, err