Allow custom block header hashing