Altering blockinfo to include valid nonce and extraNonce's in the miner_tests

Altering blockinfo to include valid nonce and extraNonce's in the miner_tests

I currently work on upgrading an old cryptocurrency (fork of an old bitcoin version) to the latest of Bitcoin that includes a lot of tests.

I currently am stuck with making this test succeed: http://ift.tt/2BYw5RB

I believe this issue is because of the hardcoded data in blockinfo (see: http://ift.tt/2l4s45O)

How do I get blockinfo to update with the right nonce and extraNonce?

I tried different things, including trying to increase the pblock->nNonce by 1 until I hit the right PoW target, but for some reason pblock->GetPoWHash() didn't change after that.

Thanks!

http://ift.tt/2kOz9Iy

Comments

Popular posts from this blog

Antminer D3 Blissz Modified Firmware For Improved Performance

ETH To The Moon / Bank of England Cryptocurrency? / BTC Dominance / More (The Crypt0 Minute)