fix block header hashing algo

...and chain reorgs as a consequence