You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The expected result would be block heights 0, 1, 2, 3 (unclear actually on the genesis block behavior, but the others should work). In fact though all of them come out as height -1 (indicating a parse error of some sort).
The text was updated successfully, but these errors were encountered:
Solved: it can't extract them because they are not there. Or at least they're not as expected. This doesn't matter for production networks, so we'll come back to it if it comes up later.
gtank
changed the title
Parser cannot extract block height from regtest blocks
Parser cannot extract block heights from nonstandard blocks
Feb 14, 2019
The genesis block is being parsed fine. What's wrong is that the genesis block contains a commitment to the initial target difficulty where the coinbase height should be. It does not contain the height. So in fact this bug is a failure to special-case the genesis block, not an incorrect parse.
Here are four regtest blocks generated with the following parameters:
The expected result would be block heights 0, 1, 2, 3 (unclear actually on the genesis block behavior, but the others should work). In fact though all of them come out as height -1 (indicating a parse error of some sort).
The text was updated successfully, but these errors were encountered: