-
Notifications
You must be signed in to change notification settings - Fork 385
improve parachain-staking test externalities #363
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
Conversation
|
This makes me think I should change the pub struct GenesisConfig {
..
stakers: Vec<(AccountId, Option<AccountId>, Balance)>
}to pub struct GenesisConfig {
..
collators: Vec<(AccountId, Balance)>,
nominators: Vec<(AccountId, AccountId, Balance)>,
}This is more of a breaking change, but I do think it is objectively better. |
JoshOrndorff
left a comment
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.
i think this is a good change.
The diff is huge mostly becaue of the tests.rs file. Is this just the result of indentation changing because of the new builder style? Or have the tests actually changed?
Yes, the builder style caused lots of indentation changes because And No, none of the tests changed at all otherwise |
Co-authored-by: Joshy Orndorff <[email protected]>
Co-authored-by: Joshy Orndorff <[email protected]>
Co-authored-by: Joshy Orndorff <[email protected]>
What does it do?
adds a builder pattern for parachain-staking test externalities, instead of hiding the config behind functions
This is just like in #339 CC @JoshOrndorff
Improves readability
What important points reviewers should know?
Is there something left for follow-up PRs?
make genesis more readable #363 (comment)
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?
Checklist