Ejemplo n.º 1
0
/**
 * @return true if this currency is a SHA256 currency and measured in MH/s rather than KH/s
 */
function is_hashrate_mhash($cur)
{
    if (in_array($cur, Currencies::getHashableCurrencies())) {
        $instance = Currencies::getInstance($cur);
        $algorithm = $instance->getAlgorithm();
        $algorithm_instance = Algorithms::getInstance($algorithm);
        return $algorithm_instance->getDivisor() >= 1000000.0;
    }
    return false;
}