fn write_key_to_file(
    key: &Ed25519PublicKey,
    env: &SmokeTestEnvironment,
    file_writer: fn(&Ed25519PublicKey, PathBuf),
) -> PathBuf {
    let (_, node_config_path) = load_node_config(&env.validator_swarm, 0);
    let file_path = node_config_path.with_file_name("KEY_FILE");
    file_writer(key, file_path.clone());
    file_path
}
/// Writes a given key to file using a specified file writer and test environment.
Writes a given key to file using a specified file writer and test environment.
Writes a given key to file using a specified file writer and test environment .
fn write_key_to_file(
    key: &Ed25519PublicKey,
    env: &SmokeTestEnvironment,
    file_writer: fn(&Ed25519PublicKey, PathBuf),
) -> PathBuf {
    let (_, node_config_path) = load_node_config(&env.validator_swarm, 0);
    let file_path = node_config_path.with_file_name("KEY_FILE");
    file_writer(key, file_path.clone());
    file_path
}
fn write_key_to_file ( key : & Ed25519PublicKey , env : & SmokeTestEnvironment , file_writer : fn ( & Ed25519PublicKey , PathBuf ) , ) -> PathBuf { let ( _ , node_config_path ) = load_node_config ( & env . validator_swarm , 0 ) ; let file_path = node_config_path . with_file_name ( " " ) ; file_writer ( key , file_path . clone ( ) ) ; file_path }
Writes a given key to file using a specified file writer and test environment.
Writes a given key to file using a specified file writer and test environment .
key
&Ed25519PublicKey
env
&SmokeTestEnvironment
file_writer
fn(&Ed25519PublicKey, PathBuf)
key
&Ed25519PublicKey
env
&SmokeTestEnvironment
file_writer
fn(&Ed25519PublicKey, PathBuf)