@@ -55,17 +55,17 @@ type swapServerClient interface {
5555
5656 NewLoopOutSwap (ctx context.Context ,
5757 swapHash lntypes.Hash , amount btcutil.Amount , expiry int32 ,
58- receiverKey [33 ]byte ,
59- swapPublicationDeadline time.Time ) (
60- * newLoopOutResponse , error )
58+ receiverKey [33 ]byte , swapPublicationDeadline time.Time ,
59+ initiator string ) (* newLoopOutResponse , error )
6160
6261 PushLoopOutPreimage (ctx context.Context ,
6362 preimage lntypes.Preimage ) error
6463
6564 NewLoopInSwap (ctx context.Context ,
6665 swapHash lntypes.Hash , amount btcutil.Amount ,
6766 senderKey [33 ]byte , swapInvoice , probeInvoice string ,
68- lastHop * route.Vertex ) (* newLoopInResponse , error )
67+ lastHop * route.Vertex , initiator string ) (* newLoopInResponse ,
68+ error )
6969
7070 // SubscribeLoopOutUpdates subscribes to loop out server state.
7171 SubscribeLoopOutUpdates (ctx context.Context ,
@@ -220,8 +220,8 @@ func (s *grpcSwapServerClient) GetLoopInQuote(ctx context.Context,
220220
221221func (s * grpcSwapServerClient ) NewLoopOutSwap (ctx context.Context ,
222222 swapHash lntypes.Hash , amount btcutil.Amount , expiry int32 ,
223- receiverKey [33 ]byte , swapPublicationDeadline time.Time ) (
224- * newLoopOutResponse , error ) {
223+ receiverKey [33 ]byte , swapPublicationDeadline time.Time ,
224+ initiator string ) ( * newLoopOutResponse , error ) {
225225
226226 rpcCtx , rpcCancel := context .WithTimeout (ctx , globalCallTimeout )
227227 defer rpcCancel ()
@@ -233,7 +233,7 @@ func (s *grpcSwapServerClient) NewLoopOutSwap(ctx context.Context,
233233 SwapPublicationDeadline : swapPublicationDeadline .Unix (),
234234 ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
235235 Expiry : expiry ,
236- UserAgent : UserAgent (),
236+ UserAgent : UserAgent (initiator ),
237237 },
238238 )
239239 if err != nil {
@@ -276,7 +276,8 @@ func (s *grpcSwapServerClient) PushLoopOutPreimage(ctx context.Context,
276276
277277func (s * grpcSwapServerClient ) NewLoopInSwap (ctx context.Context ,
278278 swapHash lntypes.Hash , amount btcutil.Amount , senderKey [33 ]byte ,
279- swapInvoice , probeInvoice string , lastHop * route.Vertex ) (* newLoopInResponse , error ) {
279+ swapInvoice , probeInvoice string , lastHop * route.Vertex ,
280+ initiator string ) (* newLoopInResponse , error ) {
280281
281282 rpcCtx , rpcCancel := context .WithTimeout (ctx , globalCallTimeout )
282283 defer rpcCancel ()
@@ -288,7 +289,7 @@ func (s *grpcSwapServerClient) NewLoopInSwap(ctx context.Context,
288289 SwapInvoice : swapInvoice ,
289290 ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
290291 ProbeInvoice : probeInvoice ,
291- UserAgent : UserAgent (),
292+ UserAgent : UserAgent (initiator ),
292293 }
293294 if lastHop != nil {
294295 req .LastHop = lastHop [:]
0 commit comments