add fee report model

This commit is contained in:
Carsten Otto
2021-11-30 13:49:38 +01:00
parent beca0a2aaa
commit e42a106a35
12 changed files with 102 additions and 74 deletions

View File

@@ -110,7 +110,7 @@ public class NodeController {
}
private FeeReportDto getFeeReportDto(Pubkey pubkey) {
return new FeeReportDto(feeService.getEarnedFeesForPeer(pubkey), feeService.getSourcedFeesForPeer(pubkey));
return FeeReportDto.createFrom(feeService.getFeeReportForPeer(pubkey));
}
private List<ChannelId> toSortedList(Set<? extends Channel> channels) {