<https://stackoverflow.com/posts/62399005/timeline> 

I have tried to use WalletTemplate sub-project inside bitcoinJ 
<https://github.com/bitcoinj/bitcoinj> lib. I have tried p2pkh sends and 
they work fine. But then I tried to make P2WPKH payment but it failed with 
the following error message

>  org.bitcoinj.core.RejectedTransactionException: Reject: tx
>  539c7f25b14b20dfad1ad66923fa59bf7531cd1ebda967e8346793fa2464f5dc for
>  reason 'non-mandatory-script-verify-flag (Signature must be zero for
>  failed CHECK(MULTI)SIG operation)' (64)
>
> This behavior doesn't exist before commit 
<https://github.com/bitcoinj/bitcoinj/commit/bc46e8518d677088b5b5a3a8dbdefa9958461c90>.
 
So I'm not sure how to handle the changes introduced since this change. I 
have also create github issue 
<https://github.com/bitcoinj/bitcoinj/issues/2006> to get more information 
but I haven't got any response yet. I have tried code outside of bitcoinj's 
walletTemplate in another project as follows: 

>     NetworkParameters params = TestNet3Params.get(); 
> Address destination = Address.fromString(params, strDest); 
> Coin value = Coin.parseCoin(strValue); 
> SendRequest request = SendRequest.to(destination, value); 
> SendResult result = wallet.sendCoins(request);
>
> Any help would be appreciated. Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bitcoinj/56658bd7-c3d2-443d-ad78-958cd97433d8o%40googlegroups.com.

Reply via email to