/// Creates most common consensus components used for testing. All components
/// share the same mocked registry with the provided records, so they refer to
/// the identical registry content at any time. This constructor should be used,
/// if specific subnet parameters are required.
Creates most common consensus components used for testing. All components
share the same mocked registry with the provided records, so they refer to
the identical registry content at any time. This constructor should be used,
if specific subnet parameters are required.
Creates most common consensus components used for testing . All components share the same mocked registry with the provided records so they refer to the identical registry content at any time . This constructor should be used if specific subnet parameters are required .
pub fn dependencies_with_subnet_params(
    pool_config: ArtifactPoolConfig,
    subnet_id: SubnetId,
    records: Vec<(u64, SubnetRecord)>,
) -> Dependencies {
    let Dependencies {
        time_source,
        registry_data_provider,
        registry,
        membership,
        crypto,
        pool,
        replica_config,
        state_manager,
        dkg_pool,
        ecdsa_pool,
        ..
    } = dependencies_with_subnet_records_with_raw_state_manager(pool_config, subnet_id, records);
    state_manager
        .get_mut()
        .expect_get_state_at()
        .return_const(Ok(ic_interfaces::state_manager::Labeled::new(
            Height::new(0),
            Arc::new(ic_test_utilities::state::get_initial_state(0, 0)),
        )));
    Dependencies {
        crypto,
        registry,
        registry_data_provider,
        membership,
        time_source,
        pool,
        replica_config,
        state_manager,
        dkg_pool,
        ecdsa_pool,
    }
}
pub fn dependencies_with_subnet_params ( pool_config : ArtifactPoolConfig , subnet_id : SubnetId , records : Vec < ( u64 , SubnetRecord ) > , ) -> Dependencies { let Dependencies { time_source , registry_data_provider , registry , membership , crypto , pool , replica_config , state_manager , dkg_pool , ecdsa_pool , .. } = dependencies_with_subnet_records_with_raw_state_manager ( pool_config , subnet_id , records ) ; state_manager . get_mut ( ) . expect_get_state_at ( ) . return_const ( Ok ( ic_interfaces :: state_manager :: Labeled :: new ( Height :: new ( 0 ) , Arc :: new ( ic_test_utilities :: state :: get_initial_state ( 0 , 0 ) ) , ) ) ) ; Dependencies { crypto , registry , registry_data_provider , membership , time_source , pool , replica_config , state_manager , dkg_pool , ecdsa_pool , } }
Creates most common consensus components used for testing.
Creates most common consensus components used for testing .
pool_config
ArtifactPoolConfig
subnet_id
SubnetId
records
Vec<(u64, SubnetRecord)>