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

PriceTable Cache Fix #792

Merged
merged 1 commit into from
Dec 6, 2023
Merged

PriceTable Cache Fix #792

merged 1 commit into from
Dec 6, 2023

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Dec 6, 2023

Very big mistake here on this line. Essentially we're caching price tables that weren't registered on the host side. Worst cases I've seen is 2h validity periods so that would mean the host is rendered useless for two hours.

I consider this a hotfix, I'll think about ways to improve it. The mistake was to be anal about having RPCPriceTable returning a hostdb entity... should've just returned it from the start and be safe. The method processing the payment now dictates the Expiry to ensure we'll never hand out "seemingly-valid-price-tables" ever again.

@peterjan peterjan self-assigned this Dec 6, 2023
@peterjan peterjan merged commit e876aa5 into master Dec 6, 2023
6 checks passed
@peterjan peterjan deleted the pj/price-tables branch December 6, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants