mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-24 00:14:25 +01:00
return total sent/received in channel information
This commit is contained in:
@@ -16,6 +16,8 @@ public record ChannelDetailsDto(
|
||||
OpenInitiator openInitiator,
|
||||
String remoteAlias,
|
||||
String capacity,
|
||||
String totalSent,
|
||||
String totalReceived,
|
||||
ChannelStatusDto status,
|
||||
BalanceInformationDto balance,
|
||||
OnChainCostsDto onChainCosts,
|
||||
@@ -38,6 +40,8 @@ public record ChannelDetailsDto(
|
||||
channelDto.openInitiator(),
|
||||
remoteAlias,
|
||||
channelDto.capacity(),
|
||||
channelDto.totalSent(),
|
||||
channelDto.totalReceived(),
|
||||
channelDto.status(),
|
||||
BalanceInformationDto.createFrom(balanceInformation),
|
||||
onChainCosts,
|
||||
|
||||
@@ -13,6 +13,8 @@ public record ChannelDto(
|
||||
int openHeight,
|
||||
Pubkey remotePubkey,
|
||||
String capacity,
|
||||
String totalSent,
|
||||
String totalReceived,
|
||||
ChannelStatusDto status,
|
||||
OpenInitiator openInitiator
|
||||
) {
|
||||
@@ -25,6 +27,8 @@ public record ChannelDto(
|
||||
localChannel.getId().getBlockHeight(),
|
||||
localChannel.getRemotePubkey(),
|
||||
String.valueOf(localChannel.getCapacity().satoshis()),
|
||||
String.valueOf(localChannel.getTotalSent().satoshis()),
|
||||
String.valueOf(localChannel.getTotalReceived().satoshis()),
|
||||
ChannelStatusDto.createFrom(localChannel.getStatus()),
|
||||
localChannel.getOpenInitiator()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user