Skip to content

Commit 5df32d6

Browse files
authored
Merge pull request #246 from Primexz/master
lndclient: expose peer alias
2 parents f3625a7 + 2137299 commit 5df32d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning_client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,9 @@ type ChannelInfo struct {
465465
// CustomChannelData is an optional field that can be used to store
466466
// data for custom channels.
467467
CustomChannelData []byte
468+
469+
// PeerAlias is the alias of the peer node.
470+
PeerAlias string
468471
}
469472

470473
func (s *lightningClient) newChannelInfo(channel *lnrpc.Channel) (*ChannelInfo,
@@ -509,6 +512,7 @@ func (s *lightningClient) newChannelInfo(channel *lnrpc.Channel) (*ChannelInfo,
509512
ZeroConf: channel.ZeroConf,
510513
ZeroConfScid: channel.ZeroConfConfirmedScid,
511514
CustomChannelData: channel.CustomChannelData,
515+
PeerAlias: channel.PeerAlias,
512516
}
513517

514518
chanInfo.AliasScids = make([]uint64, len(channel.AliasScids))

0 commit comments

Comments
 (0)