From: LLFourn Date: Tue, 1 Dec 2020 02:29:20 +0000 (+1100) Subject: [wallet] Add wallet.network() X-Git-Tag: v0.2.0~49 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.HexToArrayError.html?a=commitdiff_plain;h=67957a93b931daba29310ab062aaddcfb3befcb5;p=bdk [wallet] Add wallet.network() --- diff --git a/src/wallet/mod.rs b/src/wallet/mod.rs index f817d641..8a88cd43 100644 --- a/src/wallet/mod.rs +++ b/src/wallet/mod.rs @@ -1351,6 +1351,11 @@ where self.client.as_ref() } + /// Get the Bitcoin network the wallet is using. + pub fn network(&self) -> Network { + self.network + } + /// Broadcast a transaction to the network #[maybe_async] pub fn broadcast(&self, tx: Transaction) -> Result {