-
Notifications
You must be signed in to change notification settings - Fork 992
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
ledger: improve genesis flow #685
Conversation
fb156d5
to
9ea6ce8
Compare
9ea6ce8
to
ad489a1
Compare
ad489a1
to
cf81f4e
Compare
cf81f4e
to
5763c1c
Compare
97c2d43
to
ba4f4a6
Compare
ba4f4a6
to
142442c
Compare
Added a test that the genesis chain `fn finalize` is deterministic.
142442c
to
f6450d7
Compare
f6450d7
to
05f690f
Compare
05f690f
to
40414c2
Compare
@Fraccaman I'm closing this. I think when the feature is ready to be merged, you can cherry pick commits from this branch. |
vp = "vp_validator" | ||
commission_rate = "0.05" | ||
max_commission_rate_change = "0.01" | ||
net_address = "127.0.0.1:27656" |
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'm not sure why we need to include this parameter in the genesis process. This is strictly a configuration parameter that can be changed freely locally.
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.
For local and automated networks setup it is convenient to have it here to be able to establish connections without bootstrap peers. We can make it optional for when we don't need it
predicates files." | ||
); | ||
is_valid = false; | ||
} |
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.
we should add a call here to validate PoS params with e.g.:
let pos_errs = parameters.pos_params.validate();
if !pos_errs.is_empty() {
eprintln!("PoS params are invalid: {pos_errs:?}");
is_valid = false;
}
this is being worked on in #1840 |
based on #870 and #849
fix #711, fix #6, fix #45, fix #95, fix #115, fix #116, #470