Skip to content

Commit

Permalink
Node info: display pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Mar 11, 2023
1 parent 560612b commit d69382d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion models/NodeInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class NodeInfo extends BaseModel {
api_version?: string;

@computed public get nodeId(): string {
return this.id || this.pubkey || this.identity_pubkey || 'N/A';
return this.id || this.pubkey || this.identity_pubkey || '';
}

@computed public get isTestNet(): boolean {
Expand Down
8 changes: 8 additions & 0 deletions views/NodeInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ export default class NodeInfo extends React.Component<NodeInfoProps, {}> {
sensitive
/>

{nodeInfo.nodeId && (
<KeyValue
keyValue={localeString('views.OpenChannel.nodePubkey')}
value={nodeInfo.nodeId}
sensitive
/>
)}

{nodeInfo.version && (
<KeyValue
keyValue={localeString(
Expand Down

0 comments on commit d69382d

Please sign in to comment.