fn launch_swarm_with_op_tool_and_backend(
    num_nodes: usize,
    node_index: usize,
) -> (
    SmokeTestEnvironment,
    OperationalTool,
    SecureBackend,
    Storage,
) {
    // Launch validator swarm
    let mut env = SmokeTestEnvironment::new(num_nodes);
    env.validator_swarm.launch();

    // Connect the operator tool to the node's JSON RPC API
    let op_tool = get_op_tool(&env.validator_swarm, node_index);

    // Load validator's on disk storage
    let backend = load_backend_storage(&env.validator_swarm, node_index);
    let storage: Storage = (&backend).try_into().unwrap();

    (env, op_tool, backend, storage)
}
/// Launches a validator swarm of a specified size, connects an operational
/// tool to the node at the specified index and fetches the node's secure backend.
Launches a validator swarm of a specified size, connects an operational
tool to the node at the specified index and fetches the node's secure backend.
Launches a validator swarm of a specified size connects an operational tool to the node at the specified index and fetches the node ' s secure backend .
fn launch_swarm_with_op_tool_and_backend(
    num_nodes: usize,
    node_index: usize,
) -> (
    SmokeTestEnvironment,
    OperationalTool,
    SecureBackend,
    Storage,
) {
    // Launch validator swarm
    let mut env = SmokeTestEnvironment::new(num_nodes);
    env.validator_swarm.launch();
    // Connect the operator tool to the node's JSON RPC API
    let op_tool = get_op_tool(&env.validator_swarm, node_index);
    // Load validator's on disk storage
    let backend = load_backend_storage(&env.validator_swarm, node_index);
    let storage: Storage = (&backend).try_into().unwrap();
    (env, op_tool, backend, storage)
}
fn launch_swarm_with_op_tool_and_backend ( num_nodes : usize , node_index : usize , ) -> ( SmokeTestEnvironment , OperationalTool , SecureBackend , Storage , ) { // Launch validator swarm let mut env = SmokeTestEnvironment :: new ( num_nodes ) ; env . validator_swarm . launch ( ) ; // Connect the operator tool to the node's JSON RPC API let op_tool = get_op_tool ( & env . validator_swarm , node_index ) ; // Load validator's on disk storage let backend = load_backend_storage ( & env . validator_swarm , node_index ) ; let storage : Storage = ( & backend ) . try_into ( ) . unwrap ( ) ; ( env , op_tool , backend , storage ) }
Launches a validator swarm of a specified size, connects an operational
tool to the node at the specified index and fetches the node's secure backend.
Launches a validator swarm of a specified size connects an operational tool to the node at the specified index and fetches the node ' s secure backend .
num_nodes
usize
node_index
usize
num_nodes
usize
node_index
usize