3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-14 19:25:51 +00:00

Wallet: Fix missing else.

This commit is contained in:
Andreas Schildbach 2019-01-28 19:35:19 +01:00
parent 855f476482
commit e2b17d8bf0

View File

@ -4135,7 +4135,7 @@ public class Wallet extends BaseTaggableObject
byte[] pubkey = ScriptPattern.extractKeyFromPayToPubKey(script);
ECKey key = findKeyFromPubKey(pubkey);
return key != null && (key.isEncrypted() || key.hasPrivKey());
} if (ScriptPattern.isPayToScriptHash(script)) {
} else if (ScriptPattern.isPayToScriptHash(script)) {
RedeemData data = findRedeemDataFromScriptHash(ScriptPattern.extractHashFromPayToScriptHash(script));
return data != null && canSignFor(data.redeemScript);
} else if (ScriptPattern.isPayToPubKeyHash(script)) {