mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-26 07:16:06 -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)]
|
#[derive(structopt::StructOpt, Debug)]
|
||||||
pub enum Options {
|
pub enum Options {
|
||||||
Alice {
|
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")]
|
#[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")]
|
||||||
bitcoind_url: Url,
|
bitcoind_url: Url,
|
||||||
|
|
||||||
#[structopt(default_value = "/ip4/127.0.0.1/tcp/9876", long = "listen-addr")]
|
#[structopt(default_value = "/ip4/127.0.0.1/tcp/9876", long = "listen-addr")]
|
||||||
listen_addr: Multiaddr,
|
listen_addr: Multiaddr,
|
||||||
|
|
||||||
/// Run the swap as Bob and try to swap this many BTC (in satoshi).
|
|
||||||
// #[cfg(feature = "tor")]
|
|
||||||
#[structopt(long = "tor-port")]
|
#[structopt(long = "tor-port")]
|
||||||
tor_port: Option<u16>,
|
tor_port: Option<u16>,
|
||||||
},
|
},
|
||||||
Bob {
|
Bob {
|
||||||
/// Run the swap as Bob and try to swap this many BTC (in satoshi).
|
|
||||||
#[structopt(long = "sats")]
|
#[structopt(long = "sats")]
|
||||||
satoshis: u64,
|
satoshis: u64,
|
||||||
|
|
||||||
#[structopt(long = "alice-addr")]
|
#[structopt(long = "alice-addr")]
|
||||||
alice_addr: Multiaddr,
|
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")]
|
#[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")]
|
||||||
bitcoind_url: Url,
|
bitcoind_url: Url,
|
||||||
},
|
},
|
||||||
|
@ -41,7 +41,7 @@ use swap::{alice, bitcoin, bob, monero, Cmd, Rsp, SwapAmounts};
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
let opt: Options = Options::from_args();
|
let opt = Options::from_args();
|
||||||
|
|
||||||
trace::init_tracing(LevelFilter::Debug)?;
|
trace::init_tracing(LevelFilter::Debug)?;
|
||||||
|
|
||||||
@ -50,7 +50,6 @@ async fn main() -> Result<()> {
|
|||||||
bitcoind_url: url,
|
bitcoind_url: url,
|
||||||
listen_addr,
|
listen_addr,
|
||||||
tor_port,
|
tor_port,
|
||||||
..
|
|
||||||
} => {
|
} => {
|
||||||
info!("running swap node as Alice ...");
|
info!("running swap node as Alice ...");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user