mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 02:35:52 +00:00
Wallet: Add back deprecated variants of isDeterministicUpgradeRequired() and upgradeToDeterministic() for compatibility.
This commit is contained in:
parent
66d54c11b1
commit
4de860aa1a
@ -734,6 +734,12 @@ public class Wallet extends BaseTaggableObject
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link #upgradeToDeterministic(ScriptType, KeyParameter)} */
|
||||
@Deprecated
|
||||
public void upgradeToDeterministic(@Nullable KeyParameter aesKey) {
|
||||
upgradeToDeterministic(Script.ScriptType.P2PKH, aesKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* Upgrades the wallet to be deterministic (BIP32). You should call this, possibly providing the users encryption
|
||||
* key, after loading a wallet produced by previous versions of bitcoinj. If the wallet is encrypted the key
|
||||
@ -764,6 +770,12 @@ public class Wallet extends BaseTaggableObject
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link #isDeterministicUpgradeRequired(ScriptType)} */
|
||||
@Deprecated
|
||||
public boolean isDeterministicUpgradeRequired() {
|
||||
return isDeterministicUpgradeRequired(Script.ScriptType.P2PKH);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the wallet contains random keys and no HD chains, in which case you should call
|
||||
* {@link #upgradeToDeterministic(ScriptType, KeyParameter)} before attempting to do anything
|
||||
|
Loading…
x
Reference in New Issue
Block a user