/// Create a consensus runner with the given delivery strategy.
Create a consensus runner with the given delivery strategy.
Create a consensus runner with the given delivery strategy .
pub fn new(
        config: ConsensusRunnerConfig,
        time_source: Arc<FastForwardTimeSource>,
        logger: ReplicaLogger,
    ) -> ConsensusRunner<'a> {
        let now = time_source.get_relative_time();
        let rng = RefCell::new(ChaChaRng::seed_from_u64(config.random_seed));
        ConsensusRunner {
            idle_since: RefCell::new(now),
            instances: Vec::new(),
            stop_predicate: &stop_immediately,
            time: time_source,
            logger,
            config,
            rng,
        }
    }
pub fn new ( config : ConsensusRunnerConfig , time_source : Arc < FastForwardTimeSource > , logger : ReplicaLogger , ) -> ConsensusRunner < ' a > { let now = time_source . get_relative_time ( ) ; let rng = RefCell :: new ( ChaChaRng :: seed_from_u64 ( config . random_seed ) ) ; ConsensusRunner { idle_since : RefCell :: new ( now ) , instances : Vec :: new ( ) , stop_predicate : & stop_immediately , time : time_source , logger , config , rng , } }
Create a consensus runner with the given delivery strategy.
Create a consensus runner with the given delivery strategy .
config
ConsensusRunnerConfig
time_source
Arc<FastForwardTimeSource>
logger
ReplicaLogger