@@ -19,7 +19,6 @@ import (
1919 "github.com/lightninglabs/loop/labels"
2020 "github.com/lightninglabs/loop/staticaddr/deposit"
2121 "github.com/lightninglabs/loop/swapserverrpc"
22- looprpc "github.com/lightninglabs/loop/swapserverrpc"
2322 "github.com/lightningnetwork/lnd/lntypes"
2423 "github.com/lightningnetwork/lnd/routing/route"
2524)
@@ -34,7 +33,7 @@ const (
3433type Config struct {
3534 // Server is the client that is used to communicate with the static
3635 // address server.
37- Server looprpc .StaticAddressServerClient
36+ Server swapserverrpc .StaticAddressServerClient
3837
3938 // AddressManager gives the withdrawal manager access to static address
4039 // parameters.
@@ -232,7 +231,7 @@ func (m *Manager) notifyNotFinished(ctx context.Context, swapHash lntypes.Hash,
232231 txId chainhash.Hash ) error {
233232
234233 _ , err := m .cfg .Server .PushStaticAddressSweeplessSigs (
235- ctx , & looprpc .PushStaticAddressSweeplessSigsRequest {
234+ ctx , & swapserverrpc .PushStaticAddressSweeplessSigsRequest {
236235 SwapHash : swapHash [:],
237236 Txid : txId [:],
238237 ErrorMessage : SwapNotFinishedMsg ,
@@ -332,7 +331,7 @@ func (m *Manager) handleLoopInSweepReq(ctx context.Context,
332331
333332 // We'll now sign for every deposit that is part of the loop-in.
334333 responseMap := make (
335- map [string ]* looprpc .ClientSweeplessSigningInfo ,
334+ map [string ]* swapserverrpc .ClientSweeplessSigningInfo ,
336335 len (req .DepositToNonces ),
337336 )
338337
@@ -394,16 +393,17 @@ func (m *Manager) handleLoopInSweepReq(ctx context.Context,
394393 return err
395394 }
396395
397- responseMap [ depositOutpoint ] = & looprpc .ClientSweeplessSigningInfo { //nolint:lll
396+ signingInfo : = & swapserverrpc .ClientSweeplessSigningInfo {
398397 Nonce : musig2Session .PublicNonce [:],
399398 Sig : sig ,
400399 }
400+ responseMap [depositOutpoint ] = signingInfo
401401 }
402402
403403 txHash := sweepTx .TxHash ()
404404
405405 _ , err = m .cfg .Server .PushStaticAddressSweeplessSigs (
406- ctx , & looprpc .PushStaticAddressSweeplessSigsRequest {
406+ ctx , & swapserverrpc .PushStaticAddressSweeplessSigsRequest {
407407 SwapHash : loopIn .SwapHash [:],
408408 Txid : txHash [:],
409409 SigningInfo : responseMap ,
0 commit comments