mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-10 07:20:07 -04:00
Remove need to send Monero transfer proof from Alice to Bob
This commit is contained in:
parent
0288e004c5
commit
620216a596
16 changed files with 233 additions and 477 deletions
|
@ -2,6 +2,15 @@ use libp2p::core::Multiaddr;
|
|||
use url::Url;
|
||||
use uuid::Uuid;
|
||||
|
||||
// TODO: Remove monero_watch_only_wallet_rpc_url options.
|
||||
//
|
||||
// We need an extra `monero-wallet-rpc` to monitor the shared output without
|
||||
// unloading the user's Monero wallet. A better approach than passing in an
|
||||
// extra argument (and requiring the user to start up 2 `monero-wallet-rpc`
|
||||
// instances), may be to start up another `monero-wallet-rpc` instance as
|
||||
// part of executing this binary (i.e. requiring `monero-wallet-rpc` to be in
|
||||
// the path).
|
||||
|
||||
#[derive(structopt::StructOpt, Debug)]
|
||||
#[structopt(name = "xmr-btc-swap", about = "Trustless XMR BTC swaps")]
|
||||
pub enum Options {
|
||||
|
@ -9,8 +18,14 @@ pub enum Options {
|
|||
#[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")]
|
||||
bitcoind_url: Url,
|
||||
|
||||
#[structopt(default_value = "http://127.0.0.1:18083/json_rpc", long = "monerod")]
|
||||
monerod_url: Url,
|
||||
#[structopt(default_value = "http://127.0.0.1:18083/json_rpc", long = "monero_wallet_rpc")]
|
||||
monero_wallet_rpc_url: Url,
|
||||
|
||||
#[structopt(
|
||||
default_value = "http://127.0.0.1:18084",
|
||||
long = "monero_watch_only_wallet_rpc"
|
||||
)]
|
||||
monero_watch_only_wallet_rpc_url: Url,
|
||||
|
||||
#[structopt(default_value = "/ip4/127.0.0.1/tcp/9876", long = "listen-addr")]
|
||||
listen_addr: Multiaddr,
|
||||
|
@ -28,8 +43,14 @@ pub enum Options {
|
|||
#[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")]
|
||||
bitcoind_url: Url,
|
||||
|
||||
#[structopt(default_value = "http://127.0.0.1:18083/json_rpc", long = "monerod")]
|
||||
monerod_url: Url,
|
||||
#[structopt(default_value = "http://127.0.0.1:18083/json_rpc", long = "monero_wallet_rpc")]
|
||||
monero_wallet_rpc_url: Url,
|
||||
|
||||
#[structopt(
|
||||
default_value = "http://127.0.0.1:18084",
|
||||
long = "monero_watch_only_wallet_rpc"
|
||||
)]
|
||||
monero_watch_only_wallet_rpc_url: Url,
|
||||
|
||||
#[structopt(long = "tor")]
|
||||
tor: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue