From 67957a93b931daba29310ab062aaddcfb3befcb5 Mon Sep 17 00:00:00 2001 From: LLFourn Date: Tue, 1 Dec 2020 13:29:20 +1100 Subject: [PATCH] [wallet] Add wallet.network() --- src/wallet/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) 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 {