Restore but depreciate new_offline
This commit is contained in:
parent
410a51355b
commit
dcd90f8b61
@ -171,6 +171,18 @@ impl<D> Wallet<D>
|
|||||||
where
|
where
|
||||||
D: BatchDatabase,
|
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.
|
/// Create a wallet.
|
||||||
///
|
///
|
||||||
/// The only way this can fail is if the descriptors passed in do not match the checksums in `database`.
|
/// The only way this can fail is if the descriptors passed in do not match the checksums in `database`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user