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

test: fee pool testing #887

Merged
merged 1 commit into from
Feb 2, 2023
Merged

test: fee pool testing #887

merged 1 commit into from
Feb 2, 2023

Conversation

sander2
Copy link
Member

@sander2 sander2 commented Jan 24, 2023

A bunch of changes to the tests that I made when investigating bugs related to nomination. The randomized tests are great at catching edge cases, but finding the root cause of failing tests can be a pain. To help with that, I refactored the randomized tests to output the actions that can then be re-imported to debug the problem.

I also changed the IdealRewardPool to keep intermediate results in fixedpoint numbers such that rounding errors don't accumulate as much. This was a bit of a problem when testing slashing.

The last addition is the inclusion of slashing in the randomized tests. This led to the discovery of #847 , so it's disabled for now.

@sander2 sander2 changed the title test: more precise fee pool testing test: fee pool testing Jan 24, 2023
@gregdhill gregdhill merged commit 6b32be2 into master Feb 2, 2023
@gregdhill gregdhill deleted the fix/fees branch February 2, 2023 15:06
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