diff --git a/swap/src/cli.rs b/swap/src/cli.rs index f8189452..832b10c3 100644 --- a/swap/src/cli.rs +++ b/swap/src/cli.rs @@ -4,31 +4,22 @@ use url::Url; #[derive(structopt::StructOpt, Debug)] pub enum Options { Alice { - // /// Run the swap as Bob and try to swap this many XMR (in piconero). - // #[structopt(long = "picos", conflicts_with = "sats"))] - // pub piconeros: u64, #[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")] bitcoind_url: Url, #[structopt(default_value = "/ip4/127.0.0.1/tcp/9876", long = "listen-addr")] listen_addr: Multiaddr, - /// Run the swap as Bob and try to swap this many BTC (in satoshi). - // #[cfg(feature = "tor")] #[structopt(long = "tor-port")] tor_port: Option, }, Bob { - /// Run the swap as Bob and try to swap this many BTC (in satoshi). #[structopt(long = "sats")] satoshis: u64, #[structopt(long = "alice-addr")] alice_addr: Multiaddr, - // /// Run the swap as Bob and try to swap this many XMR (in piconero). - // #[structopt(long = "picos", conflicts_with = "sats"))] - // pub piconeros: u64, #[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")] bitcoind_url: Url, }, diff --git a/swap/src/main.rs b/swap/src/main.rs index 4ca74cc0..e52f9bc5 100644 --- a/swap/src/main.rs +++ b/swap/src/main.rs @@ -41,7 +41,7 @@ use swap::{alice, bitcoin, bob, monero, Cmd, Rsp, SwapAmounts}; #[tokio::main] async fn main() -> Result<()> { - let opt: Options = Options::from_args(); + let opt = Options::from_args(); trace::init_tracing(LevelFilter::Debug)?; @@ -50,7 +50,6 @@ async fn main() -> Result<()> { bitcoind_url: url, listen_addr, tor_port, - .. } => { info!("running swap node as Alice ...");