Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 4375308

Browse files
eskimoreskimor
andauthored
Freeze note on SessionInfo. (#6818)
* Add note about frozen `SessionInfo`. * Better comment. --------- Co-authored-by: eskimor <[email protected]>
1 parent ef5e072 commit 4375308

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

primitives/src/v2/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,6 +1603,9 @@ pub fn supermajority_threshold(n: usize) -> usize {
16031603
}
16041604

16051605
/// Information about validator sets of a session.
1606+
///
1607+
/// NOTE: `SessionInfo` is frozen. Do not include new fields, consider creating a separate runtime
1608+
/// API. Reasoning and further outlook [here](https://github.com/paritytech/polkadot/issues/6586).
16061609
#[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo)]
16071610
#[cfg_attr(feature = "std", derive(PartialEq))]
16081611
pub struct SessionInfo {

0 commit comments

Comments
 (0)