add open height to channel details

This commit is contained in:
Carsten Otto
2021-11-23 22:19:17 +01:00
parent 565cc22a8f
commit 073d0b3d17
5 changed files with 96 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ public record ChannelDetailsDto(
String channelIdCompact,
String channelIdCompactLnd,
ChannelPoint channelPoint,
int openHeight,
Pubkey remotePubkey,
String remoteAlias,
String capacity,
@@ -29,6 +30,7 @@ public record ChannelDetailsDto(
localChannel.getId().getCompactForm(),
localChannel.getId().getCompactFormLnd(),
localChannel.getChannelPoint(),
localChannel.getId().getBlockHeight(),
localChannel.getRemotePubkey(),
remoteAlias,
String.valueOf(localChannel.getCapacity().satoshis()),