@@ -15,7 +15,7 @@ import (
15
15
"github.com/lightninglabs/loop/instantout/reservation"
16
16
"github.com/lightninglabs/loop/loopdb"
17
17
"github.com/lightninglabs/loop/swap"
18
- loop_rpc "github.com/lightninglabs/loop/swapserverrpc"
18
+ "github.com/lightninglabs/loop/swapserverrpc"
19
19
"github.com/lightningnetwork/lnd/lnrpc"
20
20
"github.com/lightningnetwork/lnd/lnrpc/walletrpc"
21
21
"github.com/lightningnetwork/lnd/lntypes"
@@ -137,7 +137,7 @@ func (f *FSM) InitInstantOutAction(eventCtx fsm.EventContext) fsm.EventType {
137
137
// Send the instantout request to the server.
138
138
instantOutResponse , err := f .cfg .InstantOutClient .RequestInstantLoopOut (
139
139
f .ctx ,
140
- & loop_rpc .InstantLoopOutRequest {
140
+ & swapserverrpc .InstantLoopOutRequest {
141
141
ReceiverKey : keyRes .PubKey .SerializeCompressed (),
142
142
SwapHash : swapHash [:],
143
143
Expiry : initCtx .cltvExpiry ,
@@ -259,7 +259,8 @@ func (f *FSM) PollPaymentAcceptedAction(_ fsm.EventContext) fsm.EventType {
259
259
260
260
case <- timer .C :
261
261
res , err := f .cfg .InstantOutClient .PollPaymentAccepted (
262
- f .ctx , & loop_rpc.PollPaymentAcceptedRequest {
262
+ f .ctx ,
263
+ & swapserverrpc.PollPaymentAcceptedRequest {
263
264
SwapHash : f .InstantOut .SwapHash [:],
264
265
},
265
266
)
@@ -292,7 +293,7 @@ func (f *FSM) BuildHTLCAction(eventCtx fsm.EventContext) fsm.EventType {
292
293
// Send the server the client nonces.
293
294
htlcInitRes , err := f .cfg .InstantOutClient .InitHtlcSig (
294
295
f .ctx ,
295
- & loop_rpc .InitHtlcSigRequest {
296
+ & swapserverrpc .InitHtlcSigRequest {
296
297
SwapHash : f .InstantOut .SwapHash [:],
297
298
HtlcClientNonces : htlcClientNonces ,
298
299
},
@@ -331,7 +332,7 @@ func (f *FSM) BuildHTLCAction(eventCtx fsm.EventContext) fsm.EventType {
331
332
// Send the server the htlc signatures.
332
333
htlcRes , err := f .cfg .InstantOutClient .PushHtlcSig (
333
334
f .ctx ,
334
- & loop_rpc .PushHtlcSigRequest {
335
+ & swapserverrpc .PushHtlcSigRequest {
335
336
SwapHash : f .InstantOut .SwapHash [:],
336
337
ClientSigs : htlcSigs ,
337
338
},
@@ -377,7 +378,7 @@ func (f *FSM) PushPreimageAction(eventCtx fsm.EventContext) fsm.EventType {
377
378
378
379
pushPreImageRes , err := f .cfg .InstantOutClient .PushPreimage (
379
380
f .ctx ,
380
- & loop_rpc .PushPreimageRequest {
381
+ & swapserverrpc .PushPreimageRequest {
381
382
Preimage : f .InstantOut .swapPreimage [:],
382
383
ClientNonces : coopClientNonces ,
383
384
ClientSweepAddr : f .InstantOut .sweepAddress .String (),
@@ -615,7 +616,7 @@ func (f *FSM) handleErrorAndUnlockReservations(err error) fsm.EventType {
615
616
ctx , cancel := context .WithTimeout (context .Background (), time .Second * 30 )
616
617
defer cancel ()
617
618
_ , cancelErr := f .cfg .InstantOutClient .CancelInstantSwap (
618
- ctx , & loop_rpc .CancelInstantSwapRequest {
619
+ ctx , & swapserverrpc .CancelInstantSwapRequest {
619
620
SwapHash : f .InstantOut .SwapHash [:],
620
621
},
621
622
)
0 commit comments