routing: return error for getBandwidth and log it

This commit is contained in:
ziggie
2025-07-07 19:11:59 +02:00
committed by Oliver Gugger
parent 7bcb65d9e6
commit e1f9e87e47
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 {