diff --git a/core/src/main/java/org/bitcoinj/wallet/Wallet.java b/core/src/main/java/org/bitcoinj/wallet/Wallet.java index 90532bae..52ebde30 100644 --- a/core/src/main/java/org/bitcoinj/wallet/Wallet.java +++ b/core/src/main/java/org/bitcoinj/wallet/Wallet.java @@ -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