/// Generate an artificial genesis `ChangeSet` for testing
Generate an artificial genesis `ChangeSet` for testing
Generate an artificial genesis ` ChangeSet ` for testing
pub fn generate_genesis_type_mapping() -> BTreeMap<Vec<u8>, StructTag> {
    let stdlib_modules = stdlib_modules(StdLibOptions::Compiled);
    let swarm = libra_config::generator::validator_swarm_for_testing(10);
    encode_genesis_change_set(
        &GENESIS_KEYPAIR.1,
        &operator_assignments(&swarm.nodes),
        &operator_registrations(&swarm.nodes),
        stdlib_modules,
        VMPublishingOption::open(),
    )
    .1
}
pub fn generate_genesis_type_mapping ( ) -> BTreeMap < Vec < u8 > , StructTag > { let stdlib_modules = stdlib_modules ( StdLibOptions :: Compiled ) ; let swarm = libra_config :: generator :: validator_swarm_for_testing ( 10 ) ; encode_genesis_change_set ( & GENESIS_KEYPAIR . 1 , & operator_assignments ( & swarm . nodes ) , & operator_registrations ( & swarm . nodes ) , stdlib_modules , VMPublishingOption :: open ( ) , ) . 1 }
Generate an artificial genesis `ChangeSet` for testing
Generate an artificial genesis ` ChangeSet ` for testing