pub async fn spawn_fullnode_set(
        &self,
        num_validators: u32,
        num_fullnodes_per_validator: u32,
        image_tag: &str,
        config_overrides: &[String],
        delete_data: bool,
    ) -> Result<Vec<Instance>> {
        let fullnodes = (0..num_validators).flat_map(move |validator_index| {
            (0..num_fullnodes_per_validator).map(move |fullnode_index| {
                let fullnode_config = FullnodeConfig {
                    fullnode_index,
                    num_fullnodes_per_validator,
                    num_validators,
                    image_tag: image_tag.to_string(),
                    config_overrides: config_overrides.to_vec(),
                };
                self.cluster_swarm.spawn_new_instance(
                    InstanceConfig {
                        validator_group: ValidatorGroup::new_for_index(validator_index),
                        application_config: Fullnode(fullnode_config),
                    },
                    delete_data,
                )
            })
        });
        let fullnodes = try_join_all(fullnodes).await?;
        Ok(fullnodes)
    }
/// Creates a set of fullnodes with the given `image_tag`
Creates a set of fullnodes with the given `image_tag`
Creates a set of fullnodes with the given ` image_tag `
pub async fn spawn_fullnode_set(
        &self,
        num_validators: u32,
        num_fullnodes_per_validator: u32,
        image_tag: &str,
        config_overrides: &[String],
        delete_data: bool,
    ) -> Result<Vec<Instance>> {
        let fullnodes = (0..num_validators).flat_map(move |validator_index| {
            (0..num_fullnodes_per_validator).map(move |fullnode_index| {
                let fullnode_config = FullnodeConfig {
                    fullnode_index,
                    num_fullnodes_per_validator,
                    num_validators,
                    image_tag: image_tag.to_string(),
                    config_overrides: config_overrides.to_vec(),
                };
                self.cluster_swarm.spawn_new_instance(
                    InstanceConfig {
                        validator_group: ValidatorGroup::new_for_index(validator_index),
                        application_config: Fullnode(fullnode_config),
                    },
                    delete_data,
                )
            })
        });
        let fullnodes = try_join_all(fullnodes).await?;
        Ok(fullnodes)
    }
pub async fn spawn_fullnode_set ( & self , num_validators : u32 , num_fullnodes_per_validator : u32 , image_tag : & str , config_overrides : & [ String ] , delete_data : bool , ) -> Result < Vec < Instance > > { let fullnodes = ( 0 .. num_validators ) . flat_map ( move | validator_index | { ( 0 .. num_fullnodes_per_validator ) . map ( move | fullnode_index | { let fullnode_config = FullnodeConfig { fullnode_index , num_fullnodes_per_validator , num_validators , image_tag : image_tag . to_string ( ) , config_overrides : config_overrides . to_vec ( ) , } ; self . cluster_swarm . spawn_new_instance ( InstanceConfig { validator_group : ValidatorGroup :: new_for_index ( validator_index ) , application_config : Fullnode ( fullnode_config ) , } , delete_data , ) } ) } ) ; let fullnodes = try_join_all ( fullnodes ) . await ? ; Ok ( fullnodes ) }
Creates a set of fullnodes with the given `image_tag`
Creates a set of fullnodes with the given ` image_tag `
&self
num_validators
u32
num_fullnodes_per_validator
u32
image_tag
&str
config_overrides
&[String]
delete_data
bool
&self
num_validators
u32
num_fullnodes_per_validator
u32
image_tag
&str
config_overrides
&[String]
delete_data
bool