mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 23:19:34 -05:00
Make all fields of bitcoin::Wallet
private
This reveals that the `network` field is actually unused.
This commit is contained in:
parent
1876d17ba4
commit
0f8fbd087f
@ -38,10 +38,9 @@ enum Error {
|
||||
}
|
||||
|
||||
pub struct Wallet {
|
||||
pub inner: Arc<Mutex<bdk::Wallet<ElectrumBlockchain, bdk::sled::Tree>>>,
|
||||
pub network: bitcoin::Network,
|
||||
pub http_url: Url,
|
||||
pub rpc_url: Url,
|
||||
inner: Arc<Mutex<bdk::Wallet<ElectrumBlockchain, bdk::sled::Tree>>>,
|
||||
http_url: Url,
|
||||
rpc_url: Url,
|
||||
}
|
||||
|
||||
impl Wallet {
|
||||
@ -70,7 +69,6 @@ impl Wallet {
|
||||
|
||||
Ok(Self {
|
||||
inner: Arc::new(Mutex::new(bdk_wallet)),
|
||||
network,
|
||||
http_url: electrum_http_url,
|
||||
rpc_url: electrum_rpc_url,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user