Wallet: Fix script type in deprecated findKeyFromPubHash().

This commit is contained in:
Oscar Guindzberg
2019-04-11 13:01:26 -03:00
committed by Andreas Schildbach
parent 55612cd1dc
commit 0f5ac332ec

View File

@@ -1136,7 +1136,7 @@ public class Wallet extends BaseTaggableObject
/** @deprecated Use {@link #findKeyFromPubKeyHash(byte[], ScriptType)} */
@Deprecated
public ECKey findKeyFromPubHash(byte[] pubKeyHash) {
return findKeyFromPubKeyHash(pubKeyHash, Script.ScriptType.P2PK);
return findKeyFromPubKeyHash(pubKeyHash, Script.ScriptType.P2PKH);
}
/**