/// Association uploads the validator layout to shared storage.
Association uploads the validator layout to shared storage.
Association uploads the validator layout to shared storage .
fn create_layout(&self) {
        let mut layout = Layout::default();
        layout.association = vec![ASSOCIATION_SHARED_NS.into()];
        layout.owners = (0..self.num_validators)
            .map(|i| (i.to_string() + OWNER_SHARED_NS))
            .collect();
        layout.operators = (0..self.num_validators)
            .map(|i| (i.to_string() + OPERATOR_SHARED_NS))
            .collect();
        let mut common_storage = self
            .storage_helper
            .storage(crate::constants::COMMON_NS.into());
        let layout_value = Value::String(layout.to_toml().unwrap());
        common_storage
            .set(crate::constants::LAYOUT, layout_value)
            .unwrap();
    }
fn create_layout ( & self ) { let mut layout = Layout :: default ( ) ; layout . association = vec ! [ ASSOCIATION_SHARED_NS into ( ) ] ; layout . owners = ( 0 .. self . num_validators ) . map ( | i | ( i . to_string ( ) + OWNER_SHARED_NS ) ) . collect ( ) ; layout . operators = ( 0 .. self . num_validators ) . map ( | i | ( i . to_string ( ) + OPERATOR_SHARED_NS ) ) . collect ( ) ; let mut common_storage = self . storage_helper . storage ( crate :: constants :: COMMON_NS . into ( ) ) ; let layout_value = Value :: String ( layout . to_toml ( ) . unwrap ( ) ) ; common_storage . set ( crate :: constants :: LAYOUT , layout_value ) . unwrap ( ) ; }
Association uploads the validator layout to shared storage.
Association uploads the validator layout to shared storage .
&self