]> Untitled Git - bdk/commitdiff
Restore but depreciate new_offline
authorLLFourn <lloyd.fourn@gmail.com>
Tue, 22 Feb 2022 22:52:18 +0000 (09:52 +1100)
committerLLFourn <lloyd.fourn@gmail.com>
Thu, 24 Feb 2022 09:39:00 +0000 (20:39 +1100)
src/wallet/mod.rs

index a8d6a62c8aa8707c03ae072314721957f2842c9f..b37a108c671381d1e3e637ede6570d5268a8e8a3 100644 (file)
@@ -171,6 +171,18 @@ impl<D> Wallet<D>
 where
     D: BatchDatabase,
 {
+
+    #[deprecated = "Just use Wallet::new -- all wallets are offline now!"]
+    /// Create a new "offline" wallet
+    pub fn new_offline<E: IntoWalletDescriptor>(
+        descriptor: E,
+        change_descriptor: Option<E>,
+        network: Network,
+        database: D,
+    ) -> Result<Self, Error> {
+        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`.