Add support for Bitmain Multi Chain and Single Chain and optimize the efficiency