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 MesonStates._removeExpiredSwaps() #13

Merged
merged 1 commit into from
Dec 12, 2021
Merged

Conversation

ranmocy
Copy link
Contributor

@ranmocy ranmocy commented Dec 8, 2021

When release() is called, sometimes the node fails the request with "transaction reverted". It turns out to be a bug in _removeExpiredSwaps(). It should check the result of getTail in the while-loop to exit properly. Add tests for related functions.

@ranmocy ranmocy requested a review from qftgtr December 8, 2021 16:40
@qftgtr qftgtr merged commit a4c6ce1 into main Dec 12, 2021
@qftgtr qftgtr deleted the fix_remove_expired_swaps branch December 12, 2021 00:04
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