diff --git a/web/serverconfig.sample.php b/web/serverconfig.sample.php index 195ee91..2faaf81 100644 --- a/web/serverconfig.sample.php +++ b/web/serverconfig.sample.php @@ -30,6 +30,7 @@ define('YAAMP_USE_NICEHASH_API', false); define('YAAMP_BTCADDRESS', '1Auhps1mHZQpoX4mCcVL8odU81VakZQ6dR'); define('YAAMP_SITE_URL', 'yiimp.ccminer.org'); +define('YAAMP_STRATUM_URL', YAAMP_SITE_URL); // change if your stratum server is on a different host define('YAAMP_SITE_NAME', 'YiiMP'); define('YAAMP_ADMIN_EMAIL', 'yiimp@spam.la'); define('YAAMP_ADMIN_IP', '127.0.0.1,80.236.118.26'); diff --git a/web/yaamp/defaultconfig.php b/web/yaamp/defaultconfig.php index 85c6457..e67da3e 100644 --- a/web/yaamp/defaultconfig.php +++ b/web/yaamp/defaultconfig.php @@ -40,6 +40,7 @@ if (!defined('EXCH_NOVA_KEY')) define('EXCH_NOVA_KEY', ''); if (!defined('YAAMP_BTCADDRESS')) define('YAAMP_BTCADDRESS', ''); if (!defined('YAAMP_SITE_URL')) define('YAAMP_SITE_URL', 'localhost'); +if (!defined('YAAMP_STRATUM_URL')) define('YAAMP_STRATUM_URL', YAAMP_SITE_URL); if (!defined('YAAMP_SITE_NAME')) define('YAAMP_SITE_NAME', 'YiiMP'); if (!defined('YAAMP_ADMIN_EMAIL')) define('YAAMP_ADMIN_EMAIL', 'yiimp@spam.la'); if (!defined('YAAMP_ADMIN_IP')) define('YAAMP_ADMIN_IP', '127.0.0.1'); diff --git a/web/yaamp/modules/site/coin_form.php b/web/yaamp/modules/site/coin_form.php index 1556c36..d2a9914 100644 --- a/web/yaamp/modules/site/coin_form.php +++ b/web/yaamp/modules/site/coin_form.php @@ -330,14 +330,14 @@ if ($coin->id) { echo "gen=0\n"; echo "\n"; echo "alertnotify=echo %s | mail -s \"{$coin->name} alert!\" ".YAAMP_ADMIN_EMAIL."\n"; - echo "blocknotify=blocknotify ".YAAMP_SITE_URL.":$port {$coin->id} %s\n"; + echo "blocknotify=blocknotify ".YAAMP_STRATUM_URL.":$port {$coin->id} %s\n"; echo CHtml::closetag("pre"); echo CHtml::tag("hr"); echo "Miner command line:"; echo CHtml::opentag("pre"); echo "-a {$coin->algo} "; - echo "-o stratum+tcp://".YAAMP_SITE_URL.':'.$port.' '; + echo "-o stratum+tcp://".YAAMP_STRATUM_URL.':'.$port.' '; echo "-u {$coin->master_wallet} "; echo "-p c={$coin->symbol} "; echo "\n"; diff --git a/web/yaamp/modules/site/diff.php b/web/yaamp/modules/site/diff.php index d5157ee..c1f9b21 100644 --- a/web/yaamp/modules/site/diff.php +++ b/web/yaamp/modules/site/diff.php @@ -11,7 +11,7 @@ you have from 5 to 15 submits per minute. It's a good trade off between bandwidt if you want to set the difficulty to 64, you would use:

--o stratum+tcp://:3433 -u wallet_adress -p d=64
+-o stratum+tcp://:3433 -u wallet_adress -p d=64
 

Here are the accepted values for the custom diff:

diff --git a/web/yaamp/modules/site/index.php b/web/yaamp/modules/site/index.php index 944d42d..af2032c 100644 --- a/web/yaamp/modules/site/index.php +++ b/web/yaamp/modules/site/index.php @@ -57,7 +57,7 @@ $payout_freq = (YAAMP_PAYMENTS_FREQ / 3600)." hours";
  • - -o stratum+tcp://:<PORT> -u <WALLET_ADDRESS> [-p <OPTIONS>]

    + -o stratum+tcp://:<PORT> -u <WALLET_ADDRESS> [-p <OPTIONS>]