From: LLFourn Date: Tue, 22 Feb 2022 22:52:18 +0000 (+1100) Subject: Restore but depreciate new_offline X-Git-Tag: v0.17.0~3^2~7 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/%22example_cli/enum.Commands.html/enum.FromSliceError.html?a=commitdiff_plain;h=dcd90f8b61287164dae60f039848d3605eab8616;p=bdk Restore but depreciate new_offline --- 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`.