pub(crate) fn default_local_net(known_peer_port: u16) -> Self {
        Config {
            bind_address: SocketAddr::from((TEST_BIND_INTERFACE, 0)).to_string(),
            public_address: SocketAddr::from((TEST_BIND_INTERFACE, 0)).to_string(),
            known_addresses: vec![
                SocketAddr::from((TEST_BIND_INTERFACE, known_peer_port)).to_string()
            ],
            gossip_interval: TimeDiff::from_str(DEFAULT_TEST_GOSSIP_INTERVAL).unwrap(),
            ..Default::default()
        }
    }
/// Constructs a `Config` suitable for use by a node joining a testnet on a single machine.
Constructs a `Config` suitable for use by a node joining a testnet on a single machine.
Constructs a ` Config ` suitable for use by a node joining a testnet on a single machine .
pub(crate) fn default_local_net(known_peer_port: u16) -> Self {
        Config {
            bind_address: SocketAddr::from((TEST_BIND_INTERFACE, 0)).to_string(),
            public_address: SocketAddr::from((TEST_BIND_INTERFACE, 0)).to_string(),
            known_addresses: vec![
                SocketAddr::from((TEST_BIND_INTERFACE, known_peer_port)).to_string()
            ],
            gossip_interval: TimeDiff::from_str(DEFAULT_TEST_GOSSIP_INTERVAL).unwrap(),
            ..Default::default()
        }
    }
pub ( crate ) fn default_local_net ( known_peer_port : u16 ) -> Self { Config { bind_address : SocketAddr :: from ( ( TEST_BIND_INTERFACE , 0 ) ) . to_string ( ) , public_address : SocketAddr :: from ( ( TEST_BIND_INTERFACE , 0 ) ) . to_string ( ) , known_addresses : vec ! [ SocketAddr from ( ( TEST_BIND_INTERFACE known_peer_port ) ) to_string ( ) ] , gossip_interval : TimeDiff :: from_str ( DEFAULT_TEST_GOSSIP_INTERVAL ) . unwrap ( ) , .. Default :: default ( ) } }
Constructs a `Config` suitable for use by a node joining a testnet on a single machine.
Constructs a ` Config ` suitable for use by a node joining a testnet on a single machine .
known_peer_port
u16
known_peer_port
u16