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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
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;
|
|
|
|