raft: isStateEqual -> isHardStateEqual, IsEmptyState -> IsEmptyHardState