Skip to content

Conversation

@bhandras
Copy link
Member

PR changes two things:

  • We don't want to report routing results for prepays as those never use plugins.
  • If a plugin was requested but wasn't acquired then report result with the corrected label.

loopout.go Outdated
paymentSuccess, int32(attempts), dt.Milliseconds(),
); err != nil {
s.log.Warnf("Failed to report routing result: %v", err)
// RoutingPluginNone is requested for prepays which we don't want to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible that we also have RoutingPluginNone for swap payments if we've got multiple payments going off at the same time, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using bool flag now.

loopout.go Outdated
s.log.Warnf("Failed to report routing result: %v", err)
// RoutingPluginNone is requested for prepays which we don't want to
// report.
if pluginType != RoutingPluginNone {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any point in reporting swap payments that use RoutingPluginNone so that we can compare them to ones that use the plugin? I'd guess not because they're also affected by the mission control changes?

If yes, I think we should pass in a reportPlugin bool ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The passed in bool is solves this nicely.

@bhandras bhandras force-pushed the routing-plugin-report-filter branch from 6ae379a to a0a03d1 Compare February 18, 2022 07:30
@bhandras bhandras force-pushed the routing-plugin-report-filter branch from a0a03d1 to 32d55dc Compare February 18, 2022 07:42
@bhandras bhandras requested a review from carlaKC February 18, 2022 07:45
@bhandras bhandras merged commit 40882b7 into lightninglabs:master Feb 18, 2022
@bhandras bhandras deleted the routing-plugin-report-filter branch September 12, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants