1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-13 19:37:35 +01:00

Path-finding: log edge direction

We were previously ommitting the nodeId from graph edge, which means we
add duplicate edges but couldn't know which one was for which direction.
This commit is contained in:
t-bast 2020-11-12 17:16:24 +01:00
parent 13ff55b68b
commit 83837b6992
No known key found for this signature in database
GPG key ID: BE5D342AD368C13A

View file

@ -87,7 +87,7 @@ object RouteCalculation {
log.info(s"finding routes ${r.source}->${r.target} with assistedChannels={} ignoreNodes={} ignoreChannels={} excludedChannels={}", assistedChannels.keys.mkString(","), r.ignore.nodes.map(_.value).mkString(","), r.ignore.channels.mkString(","), d.excludedChannels.mkString(","))
log.info("finding routes with randomize={} params={}", params.randomize, params)
log.info("routing graph: {}", d.graph.edgeSet().map(e => s"${e.desc.shortChannelId}->${e.balance_opt}/${e.capacity}").mkString(", "))
log.info("routing graph: {}", d.graph.edgeSet().map(e => s"${e.desc.a}->${e.desc.shortChannelId}->${e.desc.b}->${e.balance_opt}/${e.capacity}").mkString(", "))
val tags = TagSet.Empty.withTag(Tags.MultiPart, r.allowMultiPart).withTag(Tags.Amount, Tags.amountBucket(r.amount))
KamonExt.time(Metrics.FindRouteDuration.withTags(tags.withTag(Tags.NumberOfRoutes, routesToFind.toLong))) {
val result = if (r.allowMultiPart) {