Category: YiiMP

Yiimp API currencies network hashrate and reward patch

This time i needed to have in API currencies more data, so i changed $data[$symbol] = array( 'algo' => $coin->algo, 'port' => getAlgoPort($coin->algo), 'name' => $coin->name, 'height' => (int) $coin->block_height, 'workers' => $workers, 'shares' => (int) arraySafeVal($shares,'shares'), 'hashrate' => round($factor * $algo_hashrate), 'estimate' => $btcmhd, //'percent' => round($factor * 100, 1), '24h_blocks' => (int) arraySafeVal($res24h,'a'), […]

Yiimp max difficulty patch

Go to yiimp/stratum/stratum.cpp Change char g_stratum_algo[256]; double g_stratum_difficulty; To char g_stratum_algo[256]; double g_stratum_difficulty; double g_stratum_max_difficulty; Change g_stratum_difficulty = iniparser_getdouble(ini, "STRATUM:difficulty", 16); g_stratum_max_cons = iniparser_getint(ini, "STRATUM:max_cons", 5000); To g_stratum_difficulty = iniparser_getdouble(ini, "STRATUM:difficulty", 16); g_stratum_max_difficulty = iniparser_getdouble(ini, "STRATUM:max_difficulty", 0); g_stratum_max_cons = iniparser_getint(ini, "STRATUM:max_cons", 5000); Go to yiimp/stratum/stratum.h Change extern char g_stratum_algo[256]; extern double g_stratum_difficulty; To extern char […]

Restart stratum proxy yiimp

After you have separate ports on each coin, you may need sometimes to restart only just particular stratum server, let’s say GOLDCOIN. cd /var/stratum Fill restart.sh with : #!/bin/bash echo "Stopping $1" ps aux | grep SCREEN | grep $1 |awk '{print $2}' | xargs kill -9 sleep 1 echo "Starting $2" screen -AmdS $1 […]