Restore but depreciate new_offline

This commit is contained in:
LLFourn 2022-02-23 09:52:18 +11:00
parent 410a51355b
commit dcd90f8b61
No known key found for this signature in database
GPG Key ID: A27093B54DA11F65

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