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:
parent
855f476482
commit
e2b17d8bf0
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user