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`.