Add non-standard-ports preset and test
This commit is contained in:
10
parity/cli/presets/config.non-standard-ports.toml
Normal file
10
parity/cli/presets/config.non-standard-ports.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
# This config should be placed in following path:
|
||||
# $HOME/Library/Application Support/io.parity.ethereum/config.toml
|
||||
|
||||
[network]
|
||||
# Parity will listen for connections on port 30305.
|
||||
port = 30305
|
||||
|
||||
[rpc]
|
||||
# JSON-RPC over HTTP will be accessible on port 8645.
|
||||
port = 8645
|
||||
@@ -18,6 +18,7 @@ pub fn preset_config_string(arg: &str) -> Result<&'static str, &str> {
|
||||
match arg.to_lowercase().as_ref() {
|
||||
"dev" => Ok(include_str!("./config.dev.toml")),
|
||||
"mining" => Ok(include_str!("./config.mining.toml")),
|
||||
"non-standard-ports" => Ok(include_str!("./config.non-standard-ports.toml")),
|
||||
_ => Err(arg.clone())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user