mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 15:09:35 -05:00
Remove redundant code and stale comments
This commit is contained in:
parent
249f273d1b
commit
3b008c38a6
@ -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<u16>,
|
||||
},
|
||||
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,
|
||||
},
|
||||
|
@ -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 ...");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user