mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
looprpc: fix suggestswaps response
This commit fixes the SuggestSwaps rpc call. Previously, when multiple DisqualifiedPeers were provided, all pubkeys would be the same.
This commit is contained in:
parent
dfe50e44ef
commit
1df6685653
1 changed files with 4 additions and 1 deletions
|
|
@ -885,9 +885,12 @@ func (s *swapClientServer) SuggestSwaps(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
|
||||
clonedPubkey := route.Vertex{}
|
||||
copy(clonedPubkey[:], pubkey[:])
|
||||
|
||||
exclChan := &clientrpc.Disqualified{
|
||||
Reason: autoloopReason,
|
||||
Pubkey: pubkey[:],
|
||||
Pubkey: clonedPubkey[:],
|
||||
}
|
||||
|
||||
resp.Disqualified = append(resp.Disqualified, exclChan)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue