mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-11 23:49:41 -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 struct Wallet {
|
||||||
pub inner: Arc<Mutex<bdk::Wallet<ElectrumBlockchain, bdk::sled::Tree>>>,
|
inner: Arc<Mutex<bdk::Wallet<ElectrumBlockchain, bdk::sled::Tree>>>,
|
||||||
pub network: bitcoin::Network,
|
http_url: Url,
|
||||||
pub http_url: Url,
|
rpc_url: Url,
|
||||||
pub rpc_url: Url,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Wallet {
|
impl Wallet {
|
||||||
@ -70,7 +69,6 @@ impl Wallet {
|
|||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
inner: Arc::new(Mutex::new(bdk_wallet)),
|
inner: Arc::new(Mutex::new(bdk_wallet)),
|
||||||
network,
|
|
||||||
http_url: electrum_http_url,
|
http_url: electrum_http_url,
|
||||||
rpc_url: electrum_rpc_url,
|
rpc_url: electrum_rpc_url,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user