From dcd90f8b61287164dae60f039848d3605eab8616 Mon Sep 17 00:00:00 2001 From: LLFourn Date: Wed, 23 Feb 2022 09:52:18 +1100 Subject: [PATCH] Restore but depreciate new_offline --- src/wallet/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/wallet/mod.rs b/src/wallet/mod.rs index a8d6a62c..b37a108c 100644 --- a/src/wallet/mod.rs +++ b/src/wallet/mod.rs @@ -171,6 +171,18 @@ impl Wallet where D: BatchDatabase, { + + #[deprecated = "Just use Wallet::new -- all wallets are offline now!"] + /// Create a new "offline" wallet + pub fn new_offline( + descriptor: E, + change_descriptor: Option, + network: Network, + database: D, + ) -> Result { + Self::new(descriptor, change_descriptor, network, database) + } + /// Create a wallet. /// /// The only way this can fail is if the descriptors passed in do not match the checksums in `database`.