Function pallet_staking::offchain_election::maximum_compact_len[][src]

pub fn maximum_compact_len<W: WeightInfo>(
    winners_len: u32,
    size: ElectionSize,
    max_weight: Weight
) -> u32

Find the maximum len that a compact can have in order to fit into the block weight.

This only returns a value between zero and size.nominators.