loop: add support for the probe API

This commit is contained in:
Andras Banki-Horvath 2021-05-10 16:55:53 +02:00
parent 7d044f58e8
commit f786aaa016
No known key found for this signature in database
GPG key ID: 80E5375C094198D8
20 changed files with 2118 additions and 849 deletions

View file

@ -212,8 +212,8 @@ func (s *serverMock) GetLoopInTerms(ctx context.Context) (
}, nil
}
func (s *serverMock) GetLoopInQuote(ctx context.Context, amt btcutil.Amount) (
*LoopInQuote, error) {
func (s *serverMock) GetLoopInQuote(context.Context, btcutil.Amount,
route.Vertex, *route.Vertex) (*LoopInQuote, error) {
return &LoopInQuote{
SwapFee: testSwapFee,
@ -235,3 +235,10 @@ func (s *serverMock) SubscribeLoopInUpdates(_ context.Context,
return nil, nil, nil
}
func (s *serverMock) Probe(ctx context.Context, amt btcutil.Amount,
pubKey route.Vertex, lastHop *route.Vertex,
routeHints [][]zpay32.HopHint) error {
return nil
}