We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 415a526 commit db84032Copy full SHA for db84032
routing/localchans/manager.go
@@ -311,8 +311,16 @@ func (r *Manager) createEdge(channel *channeldb.OpenChannel,
311
err)
312
}
313
314
+ // We need to make sure we use the real scid for public confirmed
315
+ // zero-conf channels.
316
+ shortChanID := channel.ShortChanID()
317
+ isPublic := channel.ChannelFlags&lnwire.FFAnnounceChannel != 0
318
+ if isPublic && channel.IsZeroConf() && channel.ZeroConfConfirmed() {
319
+ shortChanID = channel.ZeroConfRealScid()
320
+ }
321
+
322
info := &models.ChannelEdgeInfo{
- ChannelID: channel.ShortChanID().ToUint64(),
323
+ ChannelID: shortChanID.ToUint64(),
324
ChainHash: channel.ChainHash,
325
Features: featureBuf.Bytes(),
326
Capacity: channel.Capacity,
0 commit comments