Trait hotshot::traits::election::helpers::QuorumFilterConfig

source ·
pub trait QuorumFilterConfig:
    Copy
    + Clone
    + Debug
    + Default
    + Send
    + Sync
    + Ord
    + PartialOrd
    + Eq
    + PartialEq
    + Hash
    + 'static {
    // Required method
    fn execute(epoch: u64, count: usize) -> BTreeSet<usize>;
}
Expand description

Trait wrapping a config for quorum filters. This allows selection between either the StableQuorumIterator or the RandomOverlapQuorumIterator functionality from above

Required Methods§

source

fn execute(epoch: u64, count: usize) -> BTreeSet<usize>

Called to run the filter and return a set of indices

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<const SEED: u64, const MEMBERS_MIN: u64, const MEMBERS_MAX: u64, const OVERLAP_MIN: u64, const OVERLAP_MAX: u64> QuorumFilterConfig for RandomOverlapQuorumFilterConfig<SEED, MEMBERS_MIN, MEMBERS_MAX, OVERLAP_MIN, OVERLAP_MAX>

source§

impl<const SEED: u64, const OVERLAP: u64> QuorumFilterConfig for StableQuorumFilterConfig<SEED, OVERLAP>