mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 06:22:39 -04:00
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:
parent
343badbb4b
commit
1cdc23de32
4 changed files with 16 additions and 15 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue