@@ -174,7 +174,7 @@ func (s *grpcSwapServerClient) GetLoopOutTerms(ctx context.Context) (
174174 defer rpcCancel ()
175175 terms , err := s .server .LoopOutTerms (rpcCtx ,
176176 & looprpc.ServerLoopOutTermsRequest {
177- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
177+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
178178 },
179179 )
180180 if err != nil {
@@ -199,7 +199,7 @@ func (s *grpcSwapServerClient) GetLoopOutQuote(ctx context.Context,
199199 & looprpc.ServerLoopOutQuoteRequest {
200200 Amt : uint64 (amt ),
201201 SwapPublicationDeadline : swapPublicationDeadline .Unix (),
202- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
202+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
203203 Expiry : expiry ,
204204 },
205205 )
@@ -231,7 +231,7 @@ func (s *grpcSwapServerClient) GetLoopInTerms(ctx context.Context) (
231231 defer rpcCancel ()
232232 terms , err := s .server .LoopInTerms (rpcCtx ,
233233 & looprpc.ServerLoopInTermsRequest {
234- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
234+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
235235 },
236236 )
237237 if err != nil {
@@ -258,7 +258,7 @@ func (s *grpcSwapServerClient) GetLoopInQuote(ctx context.Context,
258258
259259 req := & looprpc.ServerLoopInQuoteRequest {
260260 Amt : uint64 (amt ),
261- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
261+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
262262 Pubkey : pubKey [:],
263263 }
264264
@@ -343,7 +343,7 @@ func (s *grpcSwapServerClient) Probe(ctx context.Context, amt btcutil.Amount,
343343 req := & looprpc.ServerProbeRequest {
344344 Amt : uint64 (amt ),
345345 Target : target [:],
346- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
346+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
347347 RouteHints : rpcRouteHints ,
348348 }
349349
@@ -368,7 +368,7 @@ func (s *grpcSwapServerClient) NewLoopOutSwap(ctx context.Context,
368368 Amt : uint64 (amount ),
369369 ReceiverKey : receiverKey [:],
370370 SwapPublicationDeadline : swapPublicationDeadline .Unix (),
371- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
371+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
372372 Expiry : expiry ,
373373 UserAgent : UserAgent (initiator ),
374374 },
@@ -403,7 +403,7 @@ func (s *grpcSwapServerClient) PushLoopOutPreimage(ctx context.Context,
403403
404404 _ , err := s .server .LoopOutPushPreimage (rpcCtx ,
405405 & looprpc.ServerLoopOutPushPreimageRequest {
406- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
406+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
407407 Preimage : preimage [:],
408408 },
409409 )
@@ -424,7 +424,7 @@ func (s *grpcSwapServerClient) NewLoopInSwap(ctx context.Context,
424424 Amt : uint64 (amount ),
425425 SenderKey : senderKey [:],
426426 SwapInvoice : swapInvoice ,
427- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
427+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
428428 ProbeInvoice : probeInvoice ,
429429 UserAgent : UserAgent (initiator ),
430430 }
@@ -469,7 +469,7 @@ func (s *grpcSwapServerClient) SubscribeLoopInUpdates(ctx context.Context,
469469
470470 resp , err := s .server .SubscribeLoopInUpdates (
471471 ctx , & looprpc.SubscribeUpdatesRequest {
472- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
472+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
473473 SwapHash : hash [:],
474474 },
475475 )
@@ -500,7 +500,7 @@ func (s *grpcSwapServerClient) SubscribeLoopOutUpdates(ctx context.Context,
500500
501501 resp , err := s .server .SubscribeLoopOutUpdates (
502502 ctx , & looprpc.SubscribeUpdatesRequest {
503- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
503+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
504504 SwapHash : hash [:],
505505 },
506506 )
@@ -639,7 +639,7 @@ func (s *grpcSwapServerClient) CancelLoopOutSwap(ctx context.Context,
639639 details * outCancelDetails ) error {
640640
641641 req := & looprpc.CancelLoopOutSwapRequest {
642- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
642+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
643643 SwapHash : details .hash [:],
644644 PaymentAddress : details .paymentAddr [:],
645645 }
@@ -660,7 +660,7 @@ func (s *grpcSwapServerClient) RecommendRoutingPlugin(ctx context.Context,
660660 swapHash lntypes.Hash , paymentAddr [32 ]byte ) (RoutingPluginType , error ) {
661661
662662 req := & looprpc.RecommendRoutingPluginReq {
663- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
663+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
664664 SwapHash : swapHash [:],
665665 PaymentAddress : paymentAddr [:],
666666 }
@@ -704,7 +704,7 @@ func (s *grpcSwapServerClient) ReportRoutingResult(ctx context.Context,
704704 }
705705
706706 req := & looprpc.ReportRoutingResultReq {
707- ProtocolVersion : loopdb .CurrentRPCProtocolVersion ,
707+ ProtocolVersion : loopdb .CurrentRPCProtocolVersion () ,
708708 SwapHash : swapHash [:],
709709 PaymentAddress : paymentAddr [:],
710710 Plugin : rpcRoutingPlugin ,
0 commit comments