add "is closed" to channel details

This commit is contained in:
Carsten Otto
2021-11-23 23:03:51 +01:00
parent 6d3b463e70
commit 29aef8d083
12 changed files with 59 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ public record ChannelDetailsDto(
String capacity,
@JsonProperty("private") boolean privateChannel,
boolean active,
boolean closed,
BalanceInformationDto balance,
OnChainCostsDto onChainCosts
) {
@@ -37,6 +38,7 @@ public record ChannelDetailsDto(
String.valueOf(localChannel.getCapacity().satoshis()),
localChannel.isPrivateChannel(),
localChannel.isActive(),
localChannel.isClosed(),
BalanceInformationDto.createFrom(balanceInformation),
onChainCosts
);