def mining_hash(self) -> Hash32: result = keccak(rlp.encode(self[:-2], MiningHeader)) return cast(Hash32, result)