routing: return error for getBandwidth and log it

This commit is contained in:
ziggie
2025-07-07 19:11:59 +02:00
parent 9a75400295
commit eb4c87cdcb
2 changed files with 18 additions and 21 deletions

View File

@@ -551,8 +551,7 @@ func getOutgoingBalance(node route.Vertex, outgoingChans map[uint64]struct{},
log.Warnf("ShortChannelID=%v: not found in the local "+
"channels map of the bandwidth manager, "+
"using channel capacity=%v as bandwidth for "+
"this channel", shortID, bandwidth,
)
"this channel", shortID, bandwidth)
}
if bandwidth > max {