Title: Creating the 100 Miner Test Blocks. Post by: MatthewLM on October 17, 2012, 06:01:20 PM Hello. I'm trying to generate the mining test blocks from here: https://github.com/bitcoin/bitcoin/blob/master/src/test/miner_tests.cpp
I assume they work on top of the genesis block and so I tried creating them but the first fails with a bad hash. The first block data I have is this: Code: 0x1, 0x0, 0x0, 0x0, // Version 1 What am I doing wrong, does anyone know? I need to do this to do some block validation tests. Title: Re: Creating the 100 Miner Test Blocks. Post by: MatthewLM on October 17, 2012, 06:56:43 PM Okay the issue was with the input script length. Mine was 5 bytes but it should have only been 2 bytes. One byte each for the two numbers. All sorted now.
|