include closed channel IDs in node details

This commit is contained in:
Carsten Otto
2021-11-21 22:24:40 +01:00
parent e4dfd5911d
commit 1428db620d
6 changed files with 47 additions and 2 deletions

View File

@@ -95,6 +95,12 @@ public class ChannelService {
.collect(Collectors.toSet());
}
public Set<ClosedChannel> getClosedChannelsWith(Pubkey peer) {
return getClosedChannels().stream()
.filter(c -> peer.equals(c.getRemotePubkey()))
.collect(Collectors.toSet());
}
public Set<LocalChannel> getAllChannelsWith(Pubkey peer) {
return getAllLocalChannels()
.filter(c -> peer.equals(c.getRemotePubkey()))