mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
looprpc+swap_client: add user agent string to swaps
This commit is contained in:
parent
f36b105135
commit
61b2387be7
3 changed files with 141 additions and 89 deletions
|
|
@ -233,6 +233,7 @@ func (s *grpcSwapServerClient) NewLoopOutSwap(ctx context.Context,
|
|||
SwapPublicationDeadline: swapPublicationDeadline.Unix(),
|
||||
ProtocolVersion: loopdb.CurrentRPCProtocolVersion,
|
||||
Expiry: expiry,
|
||||
UserAgent: UserAgent(),
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
|
|
@ -287,6 +288,7 @@ func (s *grpcSwapServerClient) NewLoopInSwap(ctx context.Context,
|
|||
SwapInvoice: swapInvoice,
|
||||
ProtocolVersion: loopdb.CurrentRPCProtocolVersion,
|
||||
ProbeInvoice: probeInvoice,
|
||||
UserAgent: UserAgent(),
|
||||
}
|
||||
if lastHop != nil {
|
||||
req.LastHop = lastHop[:]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue