Skip to content
Snippets Groups Projects
Commit 7d9a0b7c authored by eskimor's avatar eskimor Committed by GitHub
Browse files

Freeze note on `SessionInfo`. (#6818)


* Add note about frozen `SessionInfo`.

* Better comment.

---------

Co-authored-by: default avatareskimor <eskimor@no-such-url.com>
parent d98d948b
Branches
No related merge requests found
......@@ -1603,6 +1603,9 @@ pub fn supermajority_threshold(n: usize) -> usize {
}
/// Information about validator sets of a session.
///
/// NOTE: `SessionInfo` is frozen. Do not include new fields, consider creating a separate runtime
/// API. Reasoning and further outlook [here](https://github.com/paritytech/polkadot/issues/6586).
#[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo)]
#[cfg_attr(feature = "std", derive(PartialEq))]
pub struct SessionInfo {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment