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