-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: InitChainer
auto stakes uniformly to validators at genesis
#26
Conversation
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.
let's make sure we add documentation on readme and changelog, but otherwise looks good!
we already tested succesfully on a localnet manually, so as soon as docs are ready I'm gonna merge and release for the sake of time, but let's also work on proper testing to add to the code later
README.md
Outdated
@@ -14,3 +14,4 @@ The following modifications have been made to the Cosmos Hub software to create | |||
7. Removed ability for validators to vote on proposals with delegations, they can only use their own stake | |||
8. Removed community spend proposal | |||
9. Allowed setting different voting periods for different proposal types | |||
10. Auto stake genesis accounts |
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.
can we expand here describing better what the algorithm does?
also le'ts add the same description on the PR text
InitChainer
auto stakes uniformly to validators at genesis
We will need proper tests @tbruyelle |
working on it! |
Stake automatically 50% of balance for accounts that have more than 25 $GOVGEN at genesis initialization. The resulting stake distribution will provide approximately the same voting power to all genesis validators. Accounts will automatically stake to 5 validators if balance is less than 500 $GOVGEN, 10 validators if balance is less than 10000 $GOVGEN and 20 validators if more, uniformly.