3
0
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:
Andreas Schildbach 2019-01-28 19:38:18 +01:00
parent e2b17d8bf0
commit 3614144e17

View File

@ -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;
}