Stop mangling the actual block's hash, and work on a copy instead