Explicitly specify monero-wallet-rpc deamon port

In order to allow people to plug into public nodes / be more flexible with their own setup we now enforce specifying the monero daemon port to be used by the `monero-wallet-rpc`.
This commit is contained in:
Daniel Karzel 2021-05-11 12:37:13 +10:00
parent 343badbb4b
commit 1cdc23de32
No known key found for this signature in database
GPG key ID: 30C3FC2E438ADB6E
4 changed files with 16 additions and 15 deletions

View file

@ -7,8 +7,7 @@ use std::str::FromStr;
use url::Url;
use uuid::Uuid;
// Port is assumed to be stagenet standard port 38081
pub const DEFAULT_STAGENET_MONERO_DAEMON_HOST: &str = "monero-stagenet.exan.tech";
pub const DEFAULT_STAGENET_MONERO_DAEMON_ADDRESS: &str = "monero-stagenet.exan.tech:38081";
const DEFAULT_ELECTRUM_RPC_URL: &str = "ssl://electrum.blockstream.info:60002";
const DEFAULT_BITCOIN_CONFIRMATION_TARGET: &str = "3";
@ -103,11 +102,11 @@ pub struct Monero {
pub receive_monero_address: monero::Address,
#[structopt(
long = "monero-daemon-host",
help = "Specify to connect to a monero daemon of your choice",
default_value = DEFAULT_STAGENET_MONERO_DAEMON_HOST
long = "monero-daemon-address",
help = "Specify to connect to a monero daemon of your choice: <host>:<port>",
default_value = DEFAULT_STAGENET_MONERO_DAEMON_ADDRESS
)]
pub monero_daemon_host: String,
pub monero_daemon_address: String,
}
#[derive(structopt::StructOpt, Debug)]