add get-blockheight to status controller

This commit is contained in:
Carsten Otto
2021-11-27 11:56:13 +01:00
parent 9800c2ac5b
commit c9e514e425
5 changed files with 38 additions and 0 deletions

View File

@@ -37,6 +37,12 @@ public class StatusController {
return ownNodeService.isSyncedToChain();
}
@GetMapping("/block-height")
public int getBlockHeight() {
mark("getBlockHeight");
return ownNodeService.getBlockHeight();
}
@GetMapping("/open-channels/pubkeys")
public PubkeysDto getPubkeysForOpenChannels() {
mark("getPubkeysForOpenChannels");