Function sp_domains::extrinsics::shuffle_extrinsics

source ยท
pub fn shuffle_extrinsics<Extrinsic: Debug, AccountId: Ord + Clone>(
    extrinsics: Vec<(Option<AccountId>, Extrinsic)>,
    shuffling_seed: Randomness,
) -> VecDeque<Extrinsic>
Expand description

Shuffles the extrinsics in a deterministic way.

The extrinsics are grouped by the signer. The extrinsics without a signer, i.e., unsigned extrinsics, are considered as a special group. The items in different groups are cross shuffled, while the order of items inside the same group is still maintained.