Skip to content

Commit

Permalink
Channel: add Peer Alias SCID
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Dec 22, 2024
1 parent f83e1c6 commit 354c3eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@
"views.Channel.confirmClose": "Confirm Channel Close",
"views.Channel.aliasScid": "Alias SCID",
"views.Channel.aliasScids": "Alias SCIDs",
"views.Channel.peerAliasScid": "Peer Alias SCID",
"views.Channel.closeHeight": "Close height",
"views.Channel.closeType": "Close type",
"views.Channel.openInitiator": "Open initiator",
Expand Down
1 change: 1 addition & 0 deletions models/Channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default class Channel extends BaseModel {
capacity: string;
private: boolean;
initiator?: boolean;
peer_scid_alias?: number;
alias_scids?: Array<number>; // array uint64
local_chan_reserve_sat?: string;
remote_chan_reserve_sat?: string;
Expand Down
9 changes: 9 additions & 0 deletions views/Channels/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ export default class ChannelView extends React.Component<
shortChannelId,
initiator,
alias_scids,
peer_scid_alias,
local_chan_reserve_sat,
remote_chan_reserve_sat,
displayName,
Expand Down Expand Up @@ -416,6 +417,14 @@ export default class ChannelView extends React.Component<
)}
/>
)}
{!!peer_scid_alias && (
<KeyValue
keyValue={localeString(
'views.Channel.peerAliasScid'
)}
value={PrivacyUtils.sensitiveValue(peer_scid_alias)}
/>
)}
{zero_conf && (
<KeyValue
keyValue={localeString('views.Channel.zeroConf')}
Expand Down

0 comments on commit 354c3eb

Please sign in to comment.