pub fn max_payload_size_config() -> InternetComputer {
    InternetComputer::new()
        .add_subnet(
            Subnet::new(SubnetType::System)
                .add_nodes(1)
                .with_max_block_payload_size(XNET_MAX_SIZE as u64)
                .with_max_ingress_message_size(INGRESS_MAX_SIZE as u64),
        )
        .add_subnet(
            Subnet::new(SubnetType::Application)
                .add_nodes(1)
                .with_max_block_payload_size(XNET_MAX_SIZE as u64)
                .with_max_ingress_message_size(INGRESS_MAX_SIZE as u64),
        )
}
/// Configuration that is used for the maximum payload size tests.
/// In this test, the payload size is set to 2MiB and the ingress size to 4MiB.
/// This allows us to test, that in a misconfigured setting, the specified
/// max_block_payload_size still fits through.
/// It also allows us to test the limit in the XNet setting properly.
Configuration that is used for the maximum payload size tests.
In this test, the payload size is set to 2MiB and the ingress size to 4MiB.
This allows us to test, that in a misconfigured setting, the specified
max_block_payload_size still fits through.
It also allows us to test the limit in the XNet setting properly.
Configuration that is used for the maximum payload size tests . In this test the payload size is set to 2MiB and the ingress size to 4MiB . This allows us to test that in a misconfigured setting the specified max_block_payload_size still fits through . It also allows us to test the limit in the XNet setting properly .
pub fn max_payload_size_config() -> InternetComputer {
    InternetComputer::new()
        .add_subnet(
            Subnet::new(SubnetType::System)
                .add_nodes(1)
                .with_max_block_payload_size(XNET_MAX_SIZE as u64)
                .with_max_ingress_message_size(INGRESS_MAX_SIZE as u64),
        )
        .add_subnet(
            Subnet::new(SubnetType::Application)
                .add_nodes(1)
                .with_max_block_payload_size(XNET_MAX_SIZE as u64)
                .with_max_ingress_message_size(INGRESS_MAX_SIZE as u64),
        )
}
pub fn max_payload_size_config ( ) -> InternetComputer { InternetComputer :: new ( ) . add_subnet ( Subnet :: new ( SubnetType :: System ) . add_nodes ( 1 ) . with_max_block_payload_size ( XNET_MAX_SIZE as u64 ) . with_max_ingress_message_size ( INGRESS_MAX_SIZE as u64 ) , ) . add_subnet ( Subnet :: new ( SubnetType :: Application ) . add_nodes ( 1 ) . with_max_block_payload_size ( XNET_MAX_SIZE as u64 ) . with_max_ingress_message_size ( INGRESS_MAX_SIZE as u64 ) , ) }
Configuration that is used for the maximum payload size tests.
Configuration that is used for the maximum payload size tests .