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