Allow for custom hashing of block header