I am having an issue attempting to generate blocks for Regtest. I get at all times an error:
ERROR: AcceptBlock: bad-cb-height, block top mismatch in coinbase
The peak of the block I am attempting to mine is 1. So the Coinbase transaction I am utilizing is:
02000000010000000000000000000000000000000000000000000000000000000000000000ffffffff3f01013c8cb3d83abd14588177040029eb9bf1bf952f1f43af61e6df03578d5e3bb261a8e2a4bb1bb2da4bc180d3fc67bd1c73aac0575e280239c2f30dc3acb0000000000100f2052a010000001976a914bf01aa10263be4a8f6cabbdd60a74c7544e48d2a88ac00000000
whose components are:
02000000
01
0000000000000000000000000000000000000000000000000000000000000000
ffffffff
3f (<- That is the scale of the scriptsig (63))
0101 (<- That is the peak. Its worth is 1 and it’s utilizing 1
byte)3c8cb3d83abd14588177040029eb9bf1bf952f1f43af61e6df03578d5e3bb261a8e2a4bb1bb2da4bc180d3fc67bd1c73aac0575e280239c2f30dc3acb
(<- And I add 60 (3c) random bytes)000000000 (<- The sequence)
01 (<- One transaction which is the Coinbase)
00f2052a01000000 (<- The quantity of Satoshis)
1976a914bf01aa10263be4a8f6cabbdd60a74c7544e48d2a88ac (The
ScriptPubKey)00000000 (The locktime)
I do not see what’s the downside with the peak worth. Somebody is aware of? Thanks