mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +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());
|
||||
}
|
||||
|
||||
/** @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;
|
||||
|
Reference in New Issue
Block a user