add capacity to channel details

This commit is contained in:
Carsten Otto
2021-11-23 22:06:21 +01:00
parent 081c3acfd9
commit 565cc22a8f
3 changed files with 4 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ public record ChannelDetailsDto(
ChannelPoint channelPoint,
Pubkey remotePubkey,
String remoteAlias,
String capacity,
@JsonProperty("private") boolean privateChannel,
BalanceInformationDto balance,
OnChainCostsDto onChainCosts
@@ -30,6 +31,7 @@ public record ChannelDetailsDto(
localChannel.getChannelPoint(),
localChannel.getRemotePubkey(),
remoteAlias,
String.valueOf(localChannel.getCapacity().satoshis()),
localChannel.isPrivateChannel(),
BalanceInformationDto.createFrom(balanceInformation),
onChainCosts