persist completed payments

This commit is contained in:
Carsten Otto
2021-12-05 22:05:04 +01:00
parent 4e3d825c3c
commit 7964853037
46 changed files with 698 additions and 67 deletions

View File

@@ -73,7 +73,7 @@ public class NodeController {
toSortedList(channelService.getWaitingCloseChannelsWith(pubkey)),
toSortedList(channelService.getForceClosingChannelsWith(pubkey)),
new OnChainCostsDto(openCosts, closeCosts),
BalanceInformationDto.createFrom(balanceInformation),
BalanceInformationDto.createFromModel(balanceInformation),
node.online(),
getFeeReportDto(pubkey)
);
@@ -96,7 +96,7 @@ public class NodeController {
@Timed
@GetMapping("/balance")
public BalanceInformationDto getBalance(@PathVariable Pubkey pubkey) {
return BalanceInformationDto.createFrom(balanceService.getBalanceInformationForPeer(pubkey));
return BalanceInformationDto.createFromModel(balanceService.getBalanceInformationForPeer(pubkey));
}
@Timed
@@ -106,7 +106,7 @@ public class NodeController {
}
private FeeReportDto getFeeReportDto(Pubkey pubkey) {
return FeeReportDto.createFrom(feeService.getFeeReportForPeer(pubkey));
return FeeReportDto.createFromModel(feeService.getFeeReportForPeer(pubkey));
}
private List<ChannelId> toSortedList(Set<? extends Channel> channels) {