Bitcoin Forum

Bitcoin => Electrum => Topic started by: matthieu on April 30, 2016, 05:48:28 PM



Title: error 16: mandatory-script-verify-flag-failed
Post by: matthieu on April 30, 2016, 05:48:28 PM
Hi,

I get this error when trying to sent btc from electrum (v 1.9.8 )
Code:
The transaction was rejected by network rules : error 16: mandatory-script-verify-flag-failed (non canonical DER signature)

And I get the same error if I try to sweep the key to a new wallet
The key is from a block I mined in 2011, could it be related ?

Thanks
M.


Title: Re: error 16: mandatory-script-verify-flag-failed
Post by: matt4054 on April 30, 2016, 05:54:05 PM
The key is from a block I mined in 2011, could it be related ?

Yes. I'm afraid that you might have to craft a custom transaction manually, but I'm not proficient enough with the Bitcoin protocol to tell you specifically how to do it. Soft forks have been rolled out since 5 years ago.

Have you tried importing the key in Bitcoin Core instead?


Title: Re: error 16: mandatory-script-verify-flag-failed
Post by: matthieu on April 30, 2016, 06:00:27 PM
Have you tried importing the key in Bitcoin Core instead?

Thanks for your answer, I'll try with bitcoin core


Title: Re: error 16: mandatory-script-verify-flag-failed
Post by: twister on May 01, 2016, 03:02:25 PM
Download and install the latest version of the electrum and try to make the same transaction again, it should work. Don't have to create a new wallet, the old wallet will be selected by default which I think already contains the key with the coins that you imported.


Title: Re: error 16: mandatory-script-verify-flag-failed
Post by: matthieu on May 01, 2016, 08:12:10 PM
I had try already with electrum 2.5.4
And I just tried with 2.6.4 and still the same error

I'll try with bitcoin-core as soon as I'm finished downloading the blockchain but I'm starting to worry :(


Title: Re: error 16: mandatory-script-verify-flag-failed
Post by: matt4054 on May 05, 2016, 11:36:54 AM
I'll try with bitcoin-core as soon as I'm finished downloading the blockchain but I'm starting to worry :(

Are you finished with downloading the blockchain?

Bitcoin Core allows you to do almost anything including broadcasting raw transactions. As long as you have the private keys that belong to the public keys (addresses) that received the money, you should be safe.


Title: Re: error 16: mandatory-script-verify-flag-failed
Post by: matthieu on May 09, 2016, 09:56:01 AM
I just finished downloading the blockchain today and the transaction worked from bitcoin core, I managed to send my coins to a new electrum wallet :)
Thanks for your messages !


Title: Re: error 16: mandatory-script-verify-flag-failed
Post by: matt4054 on May 10, 2016, 04:59:32 PM
Glad to hear that, it is a good example to show why independence from client-specific implementations using private keys export/import is a feature that should be preserved no matter what :)