Skip to content

Commit

Permalink
routing: log whether the channel is disabled (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi committed Mar 23, 2024
1 parent e366203 commit e7652e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routing/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,14 @@ func addToTopologyChange(graph *channeldb.ChannelGraph, update *TopologyChange,
FeeRate: m.FeeProportionalMillionths,
AdvertisingNode: aNode,
ConnectingNode: cNode,
Disabled: m.ChannelFlags&lnwire.ChanUpdateDisabled != 0,
Disabled: m.ChannelFlags.IsDisabled(),
}

// TODO(roasbeef): add bit to toggle
update.ChannelEdgeUpdates = append(update.ChannelEdgeUpdates,
edgeUpdate)
log.Infof("Topology change: ChannelEdge %s (%s)",
edgeInfo.ChannelPoint, lnwire.NewShortChanIDFromInt(m.ChannelID))
log.Infof("Topology change: ChannelEdge %s (%s) disabled:%v",
edgeInfo.ChannelPoint, lnwire.NewShortChanIDFromInt(m.ChannelID), edgeUpdate.Disabled)
return nil

default:
Expand Down

0 comments on commit e7652e0

Please sign in to comment.