do not return duplicate pubkeys

This commit is contained in:
Carsten Otto
2021-11-12 13:38:06 +01:00
parent 2ec2ecce9a
commit b8f9af1d72
2 changed files with 15 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ public class LegacyController {
.map(LocalChannel::getRemotePubkey)
.map(Pubkey::toString)
.sorted()
.distinct()
.collect(Collectors.joining(NEWLINE));
}