mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-01 21:17:13 +00:00
Wallet: Add back deprecated variant of isPubKeyHashMine() for compatibility.
This commit is contained in:
@@ -1166,6 +1166,12 @@ public class Wallet extends BaseTaggableObject
|
|||||||
throw new IllegalArgumentException(address.toString());
|
throw new IllegalArgumentException(address.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use {@link #isPubKeyHashMine(byte[], ScriptType))} */
|
||||||
|
@Deprecated
|
||||||
|
public boolean isPubKeyHashMine(byte[] pubKeyHash) {
|
||||||
|
return isPubKeyHashMine(pubKeyHash, Script.ScriptType.P2PKH);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isPubKeyHashMine(byte[] pubKeyHash, @Nullable Script.ScriptType scriptType) {
|
public boolean isPubKeyHashMine(byte[] pubKeyHash, @Nullable Script.ScriptType scriptType) {
|
||||||
return findKeyFromPubKeyHash(pubKeyHash, scriptType) != null;
|
return findKeyFromPubKeyHash(pubKeyHash, scriptType) != null;
|
||||||
|
|||||||
Reference in New Issue
Block a user