Skip to content

Commit 3931c27

Browse files
authored
Merge pull request #504 from sputn1ck/fix_suggest_swaps_rpc
looprpc: fix suggestswaps response
2 parents dfe50e4 + 950b32d commit 3931c27

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

loopd/swapclient_server.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,9 +885,12 @@ func (s *swapClientServer) SuggestSwaps(ctx context.Context,
885885
return nil, err
886886
}
887887

888+
clonedPubkey := route.Vertex{}
889+
copy(clonedPubkey[:], pubkey[:])
890+
888891
exclChan := &clientrpc.Disqualified{
889892
Reason: autoloopReason,
890-
Pubkey: pubkey[:],
893+
Pubkey: clonedPubkey[:],
891894
}
892895

893896
resp.Disqualified = append(resp.Disqualified, exclChan)

release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ This file tracks release notes for the loop client.
2222
#### Breaking Changes
2323

2424
#### Bug Fixes
25-
25+
* The `SuggestSwaps` rpc now returns the correct peer pubkeys in the disqualified list.
2626
#### Maintenance

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727
// Note: please update release_notes.md when you change these values.
2828
appMajor uint = 0
2929
appMinor uint = 19
30-
appPatch uint = 0
30+
appPatch uint = 1
3131

3232
// appPreRelease MUST only contain characters from semanticAlphabet per
3333
// the semantic versioning spec.

0 commit comments

Comments
 (0)