From 22b2b365edf1af955b30224aaaf340f70b3e70ae Mon Sep 17 00:00:00 2001 From: Yaacov Akiba Slama Date: Sun, 3 Jan 2021 18:49:44 +0200 Subject: [PATCH] Returns the short channel id if the channel is already confirmed --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index 223f308..9c37c8d 100644 --- a/server.go +++ b/server.go @@ -232,10 +232,10 @@ func getNotFakeChannels(nodeID string, channelPoints map[string]uint64) (map[str return nil, err } for _, c := range channels { - if h, ok := channelPoints[c.ChannelPoint]; ok { + if _, ok := channelPoints[c.ChannelPoint]; ok { sid := lnwire.NewShortChanIDFromInt(c.ChanId) if !sid.IsFake() { - r[c.ChannelPoint] = h + r[c.ChannelPoint] = c.ChanId } } }