rename overloaded methods

This commit is contained in:
Carsten Otto
2021-11-30 16:00:39 +01:00
parent a524628715
commit 5af1e53c34
15 changed files with 72 additions and 72 deletions

View File

@@ -64,14 +64,14 @@ public class NodeController {
Node node = nodeService.getNode(pubkey);
Coins openCosts = onChainCostService.getOpenCostsWith(pubkey);
Coins closeCosts = onChainCostService.getCloseCostsWith(pubkey);
BalanceInformation balanceInformation = balanceService.getBalanceInformation(pubkey);
BalanceInformation balanceInformation = balanceService.getBalanceInformationForPeer(pubkey);
return new NodeDetailsDto(
pubkey,
node.alias(),
toSortedList(channelService.getOpenChannelsWith(pubkey)),
toSortedList(channelService.getClosedChannelsWith(pubkey)),
toSortedList(channelService.getWaitingCloseChannelsFor(pubkey)),
toSortedList(channelService.getForceClosingChannelsFor(pubkey)),
toSortedList(channelService.getWaitingCloseChannelsWith(pubkey)),
toSortedList(channelService.getForceClosingChannelsWith(pubkey)),
new OnChainCostsDto(openCosts, closeCosts),
BalanceInformationDto.createFrom(balanceInformation),
node.online(),
@@ -96,7 +96,7 @@ public class NodeController {
@Timed
@GetMapping("/balance")
public BalanceInformationDto getBalance(@PathVariable Pubkey pubkey) {
return BalanceInformationDto.createFrom(balanceService.getBalanceInformation(pubkey));
return BalanceInformationDto.createFrom(balanceService.getBalanceInformationForPeer(pubkey));
}
@Timed