mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopd: loop in from external address
Allow user to specify that htlc will be published by an external source. In that case no internal htlc tx will be published. To facilitate sending to the htlc address, the swap initiation response is extended with that address.
This commit is contained in:
parent
8b2da64b0a
commit
2e48ead6d6
12 changed files with 190 additions and 98 deletions
|
|
@ -43,7 +43,7 @@ func TestSuccess(t *testing.T) {
|
|||
|
||||
// Initiate uncharge.
|
||||
|
||||
hash, err := ctx.swapClient.LoopOut(context.Background(), testRequest)
|
||||
hash, _, err := ctx.swapClient.LoopOut(context.Background(), testRequest)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
@ -70,7 +70,7 @@ func TestFailOffchain(t *testing.T) {
|
|||
|
||||
ctx := createClientTestContext(t, nil)
|
||||
|
||||
_, err := ctx.swapClient.LoopOut(context.Background(), testRequest)
|
||||
_, _, err := ctx.swapClient.LoopOut(context.Background(), testRequest)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
@ -108,7 +108,7 @@ func TestFailWrongAmount(t *testing.T) {
|
|||
// Modify mock for this subtest.
|
||||
modifier(ctx.serverMock)
|
||||
|
||||
_, err := ctx.swapClient.LoopOut(
|
||||
_, _, err := ctx.swapClient.LoopOut(
|
||||
context.Background(), testRequest,
|
||||
)
|
||||
if err != expectedErr {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue