mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 18:25:51 +00:00
Wallet: Fix canSignFor() for CLTV payment channels.
This commit is contained in:
parent
e2b17d8bf0
commit
3614144e17
@ -4155,7 +4155,7 @@ public class Wallet extends BaseTaggableObject
|
||||
return true;
|
||||
}
|
||||
byte[] recipient = ScriptPattern.extractRecipientPubKeyFromCltvPaymentChannel(script);
|
||||
ECKey recipientKey = findKeyFromPubKey(sender);
|
||||
ECKey recipientKey = findKeyFromPubKey(recipient);
|
||||
if (recipientKey != null && (recipientKey.isEncrypted() || recipientKey.hasPrivKey())) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user