Fixing status page displaying homestead (#1020)

* Fixing status page displaying homestead when running with --testnet switch

* Putting cli parsing logic in single place. Adding tests
This commit is contained in:
Tomasz Drwięga
2016-04-30 19:58:28 +02:00
committed by Gav Wood
parent 66477a9476
commit fdd030d101
3 changed files with 103 additions and 16 deletions

View File

@@ -16,13 +16,14 @@
//! Structure to hold network settings configured from CLI
/// Networking & RPC settings
#[derive(Debug, PartialEq)]
pub struct NetworkSettings {
/// Node name
pub name: String,
/// Name of the chain we are connected to
pub chain: String,
/// Ideal number of peers
pub max_peers: usize,
pub max_peers: u32,
/// Networking port
pub network_port: u16,
/// Is JSON-RPC server enabled?