-
Notifications
You must be signed in to change notification settings - Fork 715
feat: introduce post-state-root protocol feature #9538
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,9 @@ pub enum ProtocolFeature { | |
RejectBlocksWithOutdatedProtocolVersions, | ||
#[cfg(feature = "protocol_feature_simple_nightshade_v2")] | ||
SimpleNightshadeV2, | ||
/// Enables block production with post-state-root. | ||
/// NEP: https://github.com/near/NEPs/pull/507 | ||
PostStateRoot, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pretty sure rustc will complain about unused enum variants. Either mark it as an exception, or maybe just wait with introducing it until you have your first PR that actually needs it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like rustc is OK with it 🤷 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh right because it's |
||
} | ||
|
||
impl ProtocolFeature { | ||
|
@@ -173,6 +176,7 @@ impl ProtocolFeature { | |
ProtocolFeature::RejectBlocksWithOutdatedProtocolVersions => 132, | ||
#[cfg(feature = "protocol_feature_simple_nightshade_v2")] | ||
ProtocolFeature::SimpleNightshadeV2 => 135, | ||
ProtocolFeature::PostStateRoot => 136, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that the nightly protocol version is I guess it is fine to re-use protocol version numbers of stabilized features. |
||
} | ||
} | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.