-
Notifications
You must be signed in to change notification settings - Fork 781
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
[Merged by Bors] - Update consensus code and tests to v0.12.3 #1655
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.
Looks great!
No changes required, I just made a comment :)
@@ -642,10 +639,8 @@ impl YamlConfig { | |||
} | |||
|
|||
pub fn apply_to_chain_spec<T: EthSpec>(&self, chain_spec: &ChainSpec) -> Option<ChainSpec> { |
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 notice we don't check config_name
in this function.
I think this is fine, it might be nice to name them different things but have the same values. IMO we don't really care about the name.
Happy to leave this as-is.
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.
Yeah, part of the problem with that would be backwards compatibility, the Altona and Medalla configs don't have the config_name
param at all (I guess we could default to mainnet
). But happy to leave as-is.
For the record, I've got the new v0.12.3 gossip verification conditions in a PR here: #1667. I could change the base for that PR to this branch, if we want an atomic merge. |
Thanks Paul! bors r+ |
## Proposed Changes Update test vectors for v0.12.3, and introduced configurable `proportional_slashing_multiplier`. Also makes `YamlConfig` a bit safer by making every field access in `apply_to_chain_spec` explicit, and removing the `#[serde(default)]` attribute, which would instantiate missing fields to type defaults! Risky!
Pull request successfully merged into master. Build succeeded: |
Proposed Changes
Update test vectors for v0.12.3, and introduced configurable
proportional_slashing_multiplier
.Also makes
YamlConfig
a bit safer by making every field access inapply_to_chain_spec
explicit, and removing the#[serde(default)]
attribute, which would instantiate missing fields to type defaults! Risky!