pub trait DefaultConfigurationValues {
    // Provided methods
    fn p2p_listen_port() -> u16 { ... }
    fn rpc_listen_port() -> u16 { ... }
    fn prometheus_listen_port() -> u16 { ... }
}
Expand description

Default configuration values used by Substrate

These values will be used by CliConfiguration to set default values for e.g. the listen port or the RPC port.

Provided Methods§

source

fn p2p_listen_port() -> u16

The port Substrate should listen on for p2p connections.

By default this is 30333.

source

fn rpc_listen_port() -> u16

The port Substrate should listen on for JSON-RPC connections.

By default this is 9944.

source

fn prometheus_listen_port() -> u16

The port Substrate should listen on for prometheus connections.

By default this is 9615.

Implementations on Foreign Types§

source§

impl DefaultConfigurationValues for ()

Implementors§