mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 06:22:39 -04:00
Make monero daemon host configurable
This commit is contained in:
parent
f091402c7a
commit
f8b61e2e0e
2 changed files with 25 additions and 9 deletions
|
@ -8,6 +8,9 @@ use uuid::Uuid;
|
|||
pub const DEFAULT_ALICE_MULTIADDR: &str = "/dns4/xmr-btc-asb.coblox.tech/tcp/9876";
|
||||
pub const DEFAULT_ALICE_PEER_ID: &str = "12D3KooWCdMKjesXMJz1SiZ7HgotrxuqhQJbP5sgBm2BwP1cqThi";
|
||||
|
||||
// Port is assumed to be stagenet standard port 38081
|
||||
pub const DEFAULT_STAGENET_MONERO_DAEMON_HOST: &str = "monero-stagenet.exan.tech";
|
||||
|
||||
#[derive(structopt::StructOpt, Debug)]
|
||||
pub struct Arguments {
|
||||
#[structopt(
|
||||
|
@ -77,6 +80,12 @@ pub struct ConnectParams {
|
|||
pub struct MoneroParams {
|
||||
#[structopt(long = "receive-address", parse(try_from_str = parse_monero_address))]
|
||||
pub receive_monero_address: monero::Address,
|
||||
|
||||
#[structopt(
|
||||
long = "monero-daemon-host",
|
||||
default_value = DEFAULT_STAGENET_MONERO_DAEMON_HOST
|
||||
)]
|
||||
pub monero_daemon_host: String,
|
||||
}
|
||||
|
||||
fn parse_monero_address(s: &str) -> Result<monero::Address> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue