multi: allow loop in last hop restriction

This commit is contained in:
Joost Jager 2020-02-11 13:58:55 +01:00
parent 535e964ec9
commit b69e8cb275
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
6 changed files with 111 additions and 73 deletions

View file

@ -11,6 +11,7 @@ import (
"github.com/lightninglabs/loop/test"
"github.com/lightningnetwork/lnd/lntypes"
"github.com/lightningnetwork/lnd/lnwire"
"github.com/lightningnetwork/lnd/routing/route"
"github.com/lightningnetwork/lnd/zpay32"
)
@ -127,7 +128,7 @@ func getInvoice(hash lntypes.Hash, amt btcutil.Amount, memo string) (string, err
func (s *serverMock) NewLoopInSwap(ctx context.Context,
swapHash lntypes.Hash, amount btcutil.Amount,
senderKey [33]byte, swapInvoice string) (
senderKey [33]byte, swapInvoice string, lastHop *route.Vertex) (
*newLoopInResponse, error) {
_, receiverKey := test.CreateKey(101)