Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix peer enforcement when payment issues are ongoing #851

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

jkilpatr
Copy link
Member

@jkilpatr jkilpatr commented Jan 2, 2024

This is a pretty classic case of optimization causing problems. In order to try and optimize tunnel handling on routers with many tunnels we gated running the enforcmenet update code so that it was only run when there was an actual change to execute.

At a later date we came along and added a check there to prevent running enforcement code if we where having full node issues, but the other case was never considered. What if someone needed to be unenforced while payment issues where occuring?

This patch fixes the issue by removing some of the optimization and checking over enforcement more consistently to avoid users getting stuck in one wrong state or othe other.

I also cleaned up some old actix artifacts.

This is a pretty classic case of optimization causing problems. In order
to try and optimize tunnel handling on routers with many tunnels we
gated running the enforcmenet update code so that it was only run when
there was an actual change to execute.

At a later date we came along and added a check there to prevent running
enforcement code if we where having full node issues, but the other case
was never considered. What if someone needed to be unenforced while
payment issues where occuring?

This patch fixes the issue by removing some of the optimization and
checking over enforcement more consistently to avoid users getting stuck
in one wrong state or othe other.

I also cleaned up some old actix artifacts.
@jkilpatr jkilpatr requested a review from ch-iara January 2, 2024 22:31
@jkilpatr jkilpatr merged commit 4d5581d into master Jan 6, 2024
17 checks passed
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.

2 participants