I have a problem trying to generate a block for RegTest. I always get the error:
ERROR: AcceptBlock: bad-cb-height, block height mismatch in coinbase
The block I’m trying to mine is 1 height. The height is less than 500. I don’t understand why height is an issue as this is the minimum block of retests with BIP34 enabled. Anyway, here is the Coinbase transaction I’m using:
020000000100000000000000000000000000000000000000000000000000000000000000000000FFFFFFFFF3F01013C8CB3D83D83D83D145888817040029EB9BF1BF952F1F4361E6DF03578D5E3B B261A8E2A4BB1BB2DA4BC180D3FC67BD1C73AAC0575E280239C2F330DC3ACB0000000000100 F2052A010000001976A914BF01AA10263BE4A8F6CABBDD60A74C7544E48D2A88AC0000000000
The parts are as follows:
0200000
01
00000000000000000000000000000000000000000000000000000000000000
ffffff
3f (< - this is the size of scriptsig (63))
0101 (< - This is the height. Its value is 1, using 1 byte))
3C8CB3D83ABD14588177040029EB9BF1BF952F1F43AF61E6DF03578D5E3BB261A8E2A4B1BB2DA4BC180D3FC7BD1C73AAC0575E280DC280DC280DC280DC280DC280DC280DC395E280DC280DC280DC280DC280DC280DC395E280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC280DC
00000000 (< - sequence)
01 (< - one transaction that is Coinbase)
00F2052A01000000 (< - amount of Satoshu)
1976A914BF01AA10263BE4A8F6CABBDD60A74C7544E48D2A88AC (ScriptPubkey)
0000000 (Lock Time)
What is the problem with height values? Does anyone know? thank you
Discover more from Earlybirds Invest
Subscribe to get the latest posts sent to your email.

