From 0f8fbd087ff35c5072d7f1b5ad51a38d01496400 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 25 Feb 2021 13:22:03 +1100 Subject: [PATCH] Make all fields of `bitcoin::Wallet` private This reveals that the `network` field is actually unused. --- swap/src/bitcoin/wallet.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/swap/src/bitcoin/wallet.rs b/swap/src/bitcoin/wallet.rs index 74fc4983..2e5badd3 100644 --- a/swap/src/bitcoin/wallet.rs +++ b/swap/src/bitcoin/wallet.rs @@ -38,10 +38,9 @@ enum Error { } pub struct Wallet { - pub inner: Arc>>, - pub network: bitcoin::Network, - pub http_url: Url, - pub rpc_url: Url, + inner: Arc>>, + 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, })