-
Couldn't load subscription status.
- Fork 168
1678: epoch_stake missing entries #1796
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
base: master
Are you sure you want to change the base?
Conversation
4775489 to
9644c31
Compare
9644c31 to
13838d6
Compare
6f545af to
0242576
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. I'll make some modifications for the isMigration case and we can merge.
| assertEpochStake dbSync 5 | ||
| blks <- fillUntilNextEpoch interpreter mockServer | ||
| assertBlockNoBackoff dbSync (fromIntegral $ length blks) | ||
| -- There are 10 delegations in genesis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment correct or is the old comment wrong about genesi?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can be removed. I think in the previous implementation, by the time the assertEpochStake was called the epoch 2 wouldn't have been inserted. This is why I changed the tests to check each epoch 1 + 2 separately
What modification does it need? I'm happy to make the changes or discuss |
Description
This PR fixes #1678
Currently trying to log out the slice function as it's not behaving correctly
Checklist
fourmoluon version 0.10.1.0 (which can be run withscripts/fourmolize.sh)Migrations
If there is a breaking change, especially a big one, please add a justification here. Please elaborate
more what the migration achieves, what it cannot achieve or why a migration is not possible.