Skip to content

Commit

Permalink
feat: Extend GetInfo RPC with LND identity, node alias, block height,…
Browse files Browse the repository at this point in the history
… and block hash

Added additional fields to the GetInfo RPC response to provide richer details about the blockchain and the LND node. This includes the LND node's public key (identity), its alias, the current block height, and the latest block's hash.
  • Loading branch information
ben2077 committed Oct 14, 2023
1 parent aa95df0 commit a012ae7
Show file tree
Hide file tree
Showing 4 changed files with 182 additions and 181 deletions.
2 changes: 1 addition & 1 deletion rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (r *rpcServer) GetInfo(ctx context.Context,
NodeAlias: info.Alias,
BlockHeight: uint32(blockHeight),
BlockHash: blockHash.String(),
SyncStatus: info.SyncedToChain,
SyncToChain: info.SyncedToChain,
}, nil
}

Expand Down
Loading

0 comments on commit a012ae7

Please sign in to comment.