graph/db: add CachedEdgePolicy helpers

This commit is contained in:
Elle Mouton committed 2025-06-10 20:10:35 +02:00
1 parent 42c6e951ed
commit f95588caca
3 files changed
+15 -7

No files matched your search

+1 -3
View File
@@ -360,9 +360,7 @@ func (u *edgeUnifier) getEdgeNetwork(netAmtReceived lnwire.MilliSatoshi,
}
// For network channels, skip the disabled ones.
edgeFlags := edge.policy.ChannelFlags
isDisabled := edgeFlags&lnwire.ChanUpdateDisabled != 0
if isDisabled {
if edge.policy.IsDisabled() {
log.Debugf("Skipped edge %v due to it being disabled",
edge.policy.ChannelID)
continue