fix block header hashing algo

...and chain reorgs as a consequence
Merge pull request #2 from saironiq/patch-1

fix block header hashing algo