A member of the Chinese Communist Party has been expelled after allowing the mining of cryptocurrency.