Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lightning_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ type ChannelInfo struct {
// CustomChannelData is an optional field that can be used to store
// data for custom channels.
CustomChannelData []byte

// PeerAlias is the alias of the peer node.
PeerAlias string
}

func (s *lightningClient) newChannelInfo(channel *lnrpc.Channel) (*ChannelInfo,
Expand Down Expand Up @@ -509,6 +512,7 @@ func (s *lightningClient) newChannelInfo(channel *lnrpc.Channel) (*ChannelInfo,
ZeroConf: channel.ZeroConf,
ZeroConfScid: channel.ZeroConfConfirmedScid,
CustomChannelData: channel.CustomChannelData,
PeerAlias: channel.PeerAlias,
}

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