mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-22 15:35:10 +01:00
include closed channel IDs in node details
This commit is contained in:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user