Change owner API port for MainNet (#2405)

* Change owner API port for MainNet

* Added owner_api port selector based on is_floonet
This commit is contained in:
James 2019-01-21 21:18:01 +01:00 committed by Antioch Peverell
parent b22e5752be
commit 2072e48c15

View file

@ -26,6 +26,7 @@ use uuid::Uuid;
use crate::api::TLSConfig;
use crate::core::core;
use crate::core::global;
use crate::keychain;
use crate::error::{Error, ErrorKind};
@ -145,7 +146,7 @@ pub fn owner_api(
) -> Result<(), Error> {
let res = controller::owner_listener(
wallet,
"127.0.0.1:13420",
&format!("127.0.0.1:{}", (if global::is_floonet() { "13420" } else { "3420" })),
g_args.node_api_secret.clone(),
g_args.tls_conf.clone(),
config.owner_api_include_foreign.clone(),