3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-16 04:05:50 +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); byte[] pubkey = ScriptPattern.extractKeyFromPayToPubKey(script);
ECKey key = findKeyFromPubKey(pubkey); ECKey key = findKeyFromPubKey(pubkey);
return key != null && (key.isEncrypted() || key.hasPrivKey()); return key != null && (key.isEncrypted() || key.hasPrivKey());
} if (ScriptPattern.isPayToScriptHash(script)) { } else if (ScriptPattern.isPayToScriptHash(script)) {
RedeemData data = findRedeemDataFromScriptHash(ScriptPattern.extractHashFromPayToScriptHash(script)); RedeemData data = findRedeemDataFromScriptHash(ScriptPattern.extractHashFromPayToScriptHash(script));
return data != null && canSignFor(data.redeemScript); return data != null && canSignFor(data.redeemScript);
} else if (ScriptPattern.isPayToPubKeyHash(script)) { } else if (ScriptPattern.isPayToPubKeyHash(script)) {