fn bootstrap_vfn_network(broadcast_batch_size: usize) -> (Self, PeerId, PeerId) {
        let mut smp = Self::default();

        // declare peers in network
        let validator = PeerId::random();
        let full_node = PeerId::random();

        // validator config
        let mut config = NodeConfig::random();
        config.mempool.shared_mempool_batch_size = broadcast_batch_size;

        let mut upstream_config = UpstreamConfig::default();
        upstream_config.primary_networks.push(validator);
        config.upstream = upstream_config;
        init_single_shared_mempool(&mut smp, validator, config);

        // full node
        let mut fn_config = NodeConfig::random();
        fn_config.base.role = RoleType::FullNode;
        fn_config.mempool.shared_mempool_batch_size = broadcast_batch_size;

        let mut upstream_config = UpstreamConfig::default();
        upstream_config
            .upstream_peers
            .insert(PeerNetworkId(full_node, validator));
        fn_config.upstream = upstream_config;
        init_single_shared_mempool(&mut smp, full_node, fn_config);

        (smp, validator, full_node)
    }
/// creates a shared mempool network of one full node and one validator
/// returns the newly created SharedMempoolNetwork, and the ID of validator and full node, in that order
creates a shared mempool network of one full node and one validator
returns the newly created SharedMempoolNetwork, and the ID of validator and full node, in that order
creates a shared mempool network of one full node and one validator returns the newly created SharedMempoolNetwork and the ID of validator and full node in that order
fn bootstrap_vfn_network(broadcast_batch_size: usize) -> (Self, PeerId, PeerId) {
        let mut smp = Self::default();
        // declare peers in network
        let validator = PeerId::random();
        let full_node = PeerId::random();
        // validator config
        let mut config = NodeConfig::random();
        config.mempool.shared_mempool_batch_size = broadcast_batch_size;
        let mut upstream_config = UpstreamConfig::default();
        upstream_config.primary_networks.push(validator);
        config.upstream = upstream_config;
        init_single_shared_mempool(&mut smp, validator, config);
        // full node
        let mut fn_config = NodeConfig::random();
        fn_config.base.role = RoleType::FullNode;
        fn_config.mempool.shared_mempool_batch_size = broadcast_batch_size;
        let mut upstream_config = UpstreamConfig::default();
        upstream_config
            .upstream_peers
            .insert(PeerNetworkId(full_node, validator));
        fn_config.upstream = upstream_config;
        init_single_shared_mempool(&mut smp, full_node, fn_config);
        (smp, validator, full_node)
    }
fn bootstrap_vfn_network ( broadcast_batch_size : usize ) -> ( Self , PeerId , PeerId ) { let mut smp = Self :: default ( ) ; // declare peers in network let validator = PeerId :: random ( ) ; let full_node = PeerId :: random ( ) ; // validator config let mut config = NodeConfig :: random ( ) ; config . mempool . shared_mempool_batch_size = broadcast_batch_size ; let mut upstream_config = UpstreamConfig :: default ( ) ; upstream_config . primary_networks . push ( validator ) ; config . upstream = upstream_config ; init_single_shared_mempool ( & mut smp , validator , config ) ; // full node let mut fn_config = NodeConfig :: random ( ) ; fn_config . base . role = RoleType :: FullNode ; fn_config . mempool . shared_mempool_batch_size = broadcast_batch_size ; let mut upstream_config = UpstreamConfig :: default ( ) ; upstream_config . upstream_peers . insert ( PeerNetworkId ( full_node , validator ) ) ; fn_config . upstream = upstream_config ; init_single_shared_mempool ( & mut smp , full_node , fn_config ) ; ( smp , validator , full_node ) }
creates a shared mempool network of one full node and one validator
returns the newly created SharedMempoolNetwork, and the ID of validator and full node, in that order
creates a shared mempool network of one full node and one validator returns the newly created SharedMempoolNetwork and the ID of validator and full node in that order
broadcast_batch_size
usize
broadcast_batch_size
usize