pub fn set<T: Config>(
validators: BoundedVec<T::CommitteeMember, T::MaxValidators>,
for_epoch_number: T::ScEpochNumber,
selection_inputs_hash: SizedByteString<32>,
)
Expand description
‘for_epoch_number’ parameter is needed only for validation purposes, because we need to make sure that check_inherent uses the same epoch_number as was used to create inherent data. Alternative approach would be to put epoch number inside InherentData. However, sidechain epoch number is set in Runtime, thus, inherent data provider doesn’t have to know about it. On top of that, the latter approach is slightly more complicated to code.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set
.