mirror of
https://github.com/aljazceru/lspd.git
synced 2026-01-14 19:44:22 +01:00
Returns the short channel id if the channel is already confirmed
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user