mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
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:
parent
b22e5752be
commit
2072e48c15
1 changed files with 2 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue