@@ -19,7 +19,6 @@ import (
19
19
"github.com/lightninglabs/loop/labels"
20
20
"github.com/lightninglabs/loop/staticaddr/deposit"
21
21
"github.com/lightninglabs/loop/swapserverrpc"
22
- looprpc "github.com/lightninglabs/loop/swapserverrpc"
23
22
"github.com/lightningnetwork/lnd/lntypes"
24
23
"github.com/lightningnetwork/lnd/routing/route"
25
24
)
@@ -34,7 +33,7 @@ const (
34
33
type Config struct {
35
34
// Server is the client that is used to communicate with the static
36
35
// address server.
37
- Server looprpc .StaticAddressServerClient
36
+ Server swapserverrpc .StaticAddressServerClient
38
37
39
38
// AddressManager gives the withdrawal manager access to static address
40
39
// parameters.
@@ -232,7 +231,7 @@ func (m *Manager) notifyNotFinished(ctx context.Context, swapHash lntypes.Hash,
232
231
txId chainhash.Hash ) error {
233
232
234
233
_ , err := m .cfg .Server .PushStaticAddressSweeplessSigs (
235
- ctx , & looprpc .PushStaticAddressSweeplessSigsRequest {
234
+ ctx , & swapserverrpc .PushStaticAddressSweeplessSigsRequest {
236
235
SwapHash : swapHash [:],
237
236
Txid : txId [:],
238
237
ErrorMessage : SwapNotFinishedMsg ,
@@ -332,7 +331,7 @@ func (m *Manager) handleLoopInSweepReq(ctx context.Context,
332
331
333
332
// We'll now sign for every deposit that is part of the loop-in.
334
333
responseMap := make (
335
- map [string ]* looprpc .ClientSweeplessSigningInfo ,
334
+ map [string ]* swapserverrpc .ClientSweeplessSigningInfo ,
336
335
len (req .DepositToNonces ),
337
336
)
338
337
@@ -394,16 +393,17 @@ func (m *Manager) handleLoopInSweepReq(ctx context.Context,
394
393
return err
395
394
}
396
395
397
- responseMap [ depositOutpoint ] = & looprpc .ClientSweeplessSigningInfo { //nolint:lll
396
+ signingInfo : = & swapserverrpc .ClientSweeplessSigningInfo {
398
397
Nonce : musig2Session .PublicNonce [:],
399
398
Sig : sig ,
400
399
}
400
+ responseMap [depositOutpoint ] = signingInfo
401
401
}
402
402
403
403
txHash := sweepTx .TxHash ()
404
404
405
405
_ , err = m .cfg .Server .PushStaticAddressSweeplessSigs (
406
- ctx , & looprpc .PushStaticAddressSweeplessSigsRequest {
406
+ ctx , & swapserverrpc .PushStaticAddressSweeplessSigsRequest {
407
407
SwapHash : loopIn .SwapHash [:],
408
408
Txid : txHash [:],
409
409
SigningInfo : responseMap ,
0 commit comments