/// An empty subnet that's optimized to be "fast".
///
/// The subnet is able to execute calls faster because the block time
/// on its nodes is reduced.
///
/// See also `fast_single_node`.
An empty subnet that's optimized to be "fast".
The subnet is able to execute calls faster because the block time
on its nodes is reduced.


An empty subnet that ' s optimized to be " fast " . The subnet is able to execute calls faster because the block time on its nodes is reduced .
pub fn fast(subnet_type: SubnetType, no_of_nodes: usize) -> Self {
        assert!(
            0 < no_of_nodes,
            "cannot create subner with {} nodes",
            no_of_nodes
        );
        Self::new(subnet_type)
            // Shorter block time.
            .with_unit_delay(Duration::from_millis(200))
            .with_initial_notary_delay(Duration::from_millis(500))
            // Disable starvation checks since it's very spammy
            // when the block time is low and isn't needed for a
            // single node anyways.
            .with_detect_starvation(false)
            .add_nodes(no_of_nodes)
    }
pub fn fast ( subnet_type : SubnetType , no_of_nodes : usize ) -> Self { assert ! ( 0 no_of_nodes " " no_of_nodes ) ; Self :: new ( subnet_type ) // Shorter block time. . with_unit_delay ( Duration :: from_millis ( 200 ) ) . with_initial_notary_delay ( Duration :: from_millis ( 500 ) ) // Disable starvation checks since it's very spammy // when the block time is low and isn't needed for a // single node anyways. . with_detect_starvation ( false ) . add_nodes ( no_of_nodes ) }
An empty subnet that's optimized to be "fast".
An empty subnet that ' s optimized to be " fast " .
subnet_type
SubnetType
no_of_nodes
usize