looprpc: fix suggestswaps response

This commit fixes the SuggestSwaps rpc call. Previously, when multiple
DisqualifiedPeers were provided, all pubkeys would be the same.
pull/504/head
sputn1ck 2 years ago
parent dfe50e44ef
commit 1df6685653
No known key found for this signature in database
GPG Key ID: 671103D881A5F0E4

@ -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…
Cancel
Save