fn create_and_initialize_validator_set(
    move_vm: &MoveVM,
    gas_schedule: &CostTable,
    interpreter_context: &mut TransactionExecutionContext,
) {
    let mut txn_data = TransactionMetadata::default();
    let validator_set_address = account_config::validator_set_address();
    txn_data.sender = validator_set_address;

    move_vm
        .execute_function(
            &account_config::ACCOUNT_MODULE,
            &CREATE_ACCOUNT_NAME,
            gas_schedule,
            interpreter_context,
            &txn_data,
            vec![Value::address(validator_set_address)],
        )
        .unwrap_or_else(|_| {
            panic!(
                "Failure creating validator set account {:?}",
                validator_set_address
            )
        });

    move_vm
        .execute_function(
            &LIBRA_SYSTEM_MODULE,
            &INITIALIZE_VALIDATOR_SET,
            &gas_schedule,
            interpreter_context,
            &txn_data,
            vec![],
        )
        .expect("Failure initializing validator set");
}
/// Create and initialize the validator set.
Create and initialize the validator set.
Create and initialize the validator set .
fn create_and_initialize_validator_set(
    move_vm: &MoveVM,
    gas_schedule: &CostTable,
    interpreter_context: &mut TransactionExecutionContext,
) {
    let mut txn_data = TransactionMetadata::default();
    let validator_set_address = account_config::validator_set_address();
    txn_data.sender = validator_set_address;
    move_vm
        .execute_function(
            &account_config::ACCOUNT_MODULE,
            &CREATE_ACCOUNT_NAME,
            gas_schedule,
            interpreter_context,
            &txn_data,
            vec![Value::address(validator_set_address)],
        )
        .unwrap_or_else(|_| {
            panic!(
                "Failure creating validator set account {:?}",
                validator_set_address
            )
        });
    move_vm
        .execute_function(
            &LIBRA_SYSTEM_MODULE,
            &INITIALIZE_VALIDATOR_SET,
            &gas_schedule,
            interpreter_context,
            &txn_data,
            vec![],
        )
        .expect("Failure initializing validator set");
}
fn create_and_initialize_validator_set ( move_vm : & MoveVM , gas_schedule : & CostTable , interpreter_context : & mut TransactionExecutionContext , ) { let mut txn_data = TransactionMetadata :: default ( ) ; let validator_set_address = account_config :: validator_set_address ( ) ; txn_data . sender = validator_set_address ; move_vm . execute_function ( & account_config :: ACCOUNT_MODULE , & CREATE_ACCOUNT_NAME , gas_schedule , interpreter_context , & txn_data , vec ! [ Value address ( validator_set_address ) ] , ) . unwrap_or_else ( | _ | { panic ! ( " " validator_set_address ) } ) ; move_vm . execute_function ( & LIBRA_SYSTEM_MODULE , & INITIALIZE_VALIDATOR_SET , & gas_schedule , interpreter_context , & txn_data , vec ! [ ] , ) . expect ( " " ) ; }
Create and initialize the validator set.
Create and initialize the validator set .
move_vm
&MoveVM
gas_schedule
&CostTable
interpreter_context
&mut TransactionExecutionContext
move_vm
&MoveVM
gas_schedule
&CostTable
interpreter_context
&mut TransactionExecutionContext