Construct tor transport for Bob

This commit is contained in:
rishflab 2020-11-03 14:54:36 +11:00
parent 3b008c38a6
commit 7afd316210
3 changed files with 16 additions and 6 deletions

View file

@ -2,6 +2,7 @@ use libp2p::core::Multiaddr;
use url::Url;
#[derive(structopt::StructOpt, Debug)]
#[structopt(name = "xmr-btc-swap", about = "Trustless XMR BTC swaps")]
pub enum Options {
Alice {
#[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")]
@ -22,5 +23,8 @@ pub enum Options {
#[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")]
bitcoind_url: Url,
#[structopt(long = "tor")]
tor: bool,
},
}