mirror of
https://github.com/creating2morrow/neveko.git
synced 2025-01-03 09:29:39 +00:00
add --tx-proxy flag to mainnet args
This commit is contained in:
parent
ffa625185a
commit
29a19bdfbc
1 changed files with 2 additions and 1 deletions
|
@ -119,6 +119,7 @@ pub fn start_daemon() {
|
||||||
let blockchain_dir = get_blockchain_dir();
|
let blockchain_dir = get_blockchain_dir();
|
||||||
let bin_dir = get_monero_location();
|
let bin_dir = get_monero_location();
|
||||||
let release_env = utils::get_release_env();
|
let release_env = utils::get_release_env();
|
||||||
|
let tx_proxy = utils::get_i2p_http_proxy();
|
||||||
if release_env == utils::ReleaseEnvironment::Development {
|
if release_env == utils::ReleaseEnvironment::Development {
|
||||||
let args = ["--data-dir", &blockchain_dir, "--stagenet", "--detach"];
|
let args = ["--data-dir", &blockchain_dir, "--stagenet", "--detach"];
|
||||||
let output = Command::new(format!("{}/monerod", bin_dir))
|
let output = Command::new(format!("{}/monerod", bin_dir))
|
||||||
|
@ -127,7 +128,7 @@ pub fn start_daemon() {
|
||||||
.expect("monerod failed to start");
|
.expect("monerod failed to start");
|
||||||
debug!("{:?}", output.stdout);
|
debug!("{:?}", output.stdout);
|
||||||
} else {
|
} else {
|
||||||
let args = ["--data-dir", &blockchain_dir, "--detach"];
|
let args = ["--data-dir", &blockchain_dir, "--detach", "--tx-proxy", &tx_proxy];
|
||||||
let output = Command::new(format!("{}/monerod", bin_dir))
|
let output = Command::new(format!("{}/monerod", bin_dir))
|
||||||
.args(args)
|
.args(args)
|
||||||
.spawn()
|
.spawn()
|
||||||
|
|
Loading…
Reference in a new issue