3
0
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:
Andreas Schildbach 2019-02-16 19:09:22 +01:00
parent 66d54c11b1
commit 4de860aa1a

View File

@ -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 * 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 * 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 * 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 * {@link #upgradeToDeterministic(ScriptType, KeyParameter)} before attempting to do anything