Browse Source

Merge pull request #27 from mayankchhabra/alias

Send remote node alias with list of channels
master
Mayank Chhabra 4 years ago
committed by GitHub
parent
commit
e2aabc21de
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      logic/lightning.js

5
logic/lightning.js

@ -508,8 +508,13 @@ const getChannels = async () => {
channel.remainingConfirmations = constants.LN_REQUIRED_CONFIRMATIONS - numConfirmations;
}
}
// Fetch remote node alias and set it
const { alias } = await getNodeAlias(channel.remotePubkey);
channel.remoteAlias = alias || "";
// If a managed channel exists, set the name and purpose
// if (Object.prototype.hasOwnProperty.call(managedChannels, channel.channelPoint)) {
// channel.managed = true;

Loading…
Cancel
Save