mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-22 07:24:23 +01:00
add get-blockheight to status controller
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user