Wallet: Add back deprecated variant of isPubKeyHashMine() for compatibility.

This commit is contained in:
Andreas Schildbach
2019-02-16 19:48:30 +01:00
parent 4de860aa1a
commit f11667f505

View File

@@ -1166,6 +1166,12 @@ public class Wallet extends BaseTaggableObject
throw new IllegalArgumentException(address.toString());
}
/** @deprecated Use {@link #isPubKeyHashMine(byte[], ScriptType))} */
@Deprecated
public boolean isPubKeyHashMine(byte[] pubKeyHash) {
return isPubKeyHashMine(pubKeyHash, Script.ScriptType.P2PKH);
}
@Override
public boolean isPubKeyHashMine(byte[] pubKeyHash, @Nullable Script.ScriptType scriptType) {
return findKeyFromPubKeyHash(pubKeyHash, scriptType) != null;