Merge pull request #2937 from mempool/simon/ln-alias-fallback
Fallback alias name to pubkey
This commit is contained in:
commit
87fd6dc256
@ -36,7 +36,9 @@ export class AddressLabelsComponent implements OnChanges {
|
||||
|
||||
handleChannel() {
|
||||
const type = this.vout ? 'open' : 'close';
|
||||
this.label = `Channel ${type}: ${this.channel.node_left.alias} <> ${this.channel.node_right.alias}`;
|
||||
const leftNodeName = this.channel.node_left.alias || this.channel.node_left.public_key.substring(0, 10);
|
||||
const rightNodeName = this.channel.node_right.alias || this.channel.node_right.public_key.substring(0, 10);
|
||||
this.label = `Channel ${type}: ${leftNodeName} <> ${rightNodeName}`;
|
||||
}
|
||||
|
||||
handleVin() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user