fn new(n: usize) -> Self {
		let config = Self::default_config();
		let mut net = Self::from_config(&config);

		for _ in 0..n {
			net.add_peer(&config);
		}
		net
	}
/// Create new test network with this many peers.
Create new test network with this many peers.
Create new test network with this many peers .
fn new(n: usize) -> Self {
		let config = Self::default_config();
		let mut net = Self::from_config(&config);
		for _ in 0..n {
			net.add_peer(&config);
		}
		net
	}
fn new ( n : usize ) -> Self { let config = Self :: default_config ( ) ; let mut net = Self :: from_config ( & config ) ; for _ in 0 .. n { net . add_peer ( & config ) ; } net }
Create new test network with this many peers.
Create new test network with this many peers .
n
usize
n
usize