mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 18:51:12 +00:00
Freeze note on SessionInfo. (#6818)
* Add note about frozen `SessionInfo`. * Better comment. --------- Co-authored-by: eskimor <eskimor@no-such-url.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user