Skip to content

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.

3 participants