From 96c9a4ae08416d1cfb1bd3791863878b3068cf16 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 3 Jun 2013 10:59:12 +0200 Subject: [PATCH 1/2] Renamed workers table to pool_worker * This will fix issues with mining pools using the default name * Back in line with default configurations for most mining pool software * Fixes #93 --- public/include/classes/worker.class.php | 2 +- sql/mmcfe_ng_structure.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/include/classes/worker.class.php b/public/include/classes/worker.class.php index 0637609a..5a5c19c4 100644 --- a/public/include/classes/worker.class.php +++ b/public/include/classes/worker.class.php @@ -6,7 +6,7 @@ if (!defined('SECURITY')) class Worker { private $sError = ''; - private $table = 'workers'; + private $table = 'pool_worker'; public function __construct($debug, $mysqli, $user, $share, $config) { $this->debug = $debug; diff --git a/sql/mmcfe_ng_structure.sql b/sql/mmcfe_ng_structure.sql index 1ac32501..4b6bf27d 100644 --- a/sql/mmcfe_ng_structure.sql +++ b/sql/mmcfe_ng_structure.sql @@ -161,10 +161,10 @@ CREATE TABLE IF NOT EXISTS `transactions` ( -- -------------------------------------------------------- -- --- Table structure for table `workers` +-- Table structure for table `pool_worker` -- -CREATE TABLE IF NOT EXISTS `workers` ( +CREATE TABLE IF NOT EXISTS `pool_worker` ( `id` int(255) NOT NULL AUTO_INCREMENT, `account_id` int(255) NOT NULL, `username` char(50) DEFAULT NULL, From c16e12886ac85011b968dfa6bb1b163ac0c2f4e9 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 3 Jun 2013 12:07:06 +0300 Subject: [PATCH 2/2] Update global.inc.dist.php * Adjusted default difficulty in `config.inc.dist.php` to `20` which seems to be stratum default. --- public/include/config/global.inc.dist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/config/global.inc.dist.php b/public/include/config/global.inc.dist.php index f97946f9..2bb6069f 100644 --- a/public/include/config/global.inc.dist.php +++ b/public/include/config/global.inc.dist.php @@ -34,7 +34,7 @@ $config = array( 'blockexplorer' => 'http://explorer.litecoin.net/search?q=', // URL for block searches, prefixed to each block number 'chaininfo' => 'http://allchains.info', // Link to Allchains for Difficulty information 'fees' => 0, - 'difficulty' => '31', // Target difficulty for this pool as set in pushpoold json + 'difficulty' => '20', // Target difficulty for this pool as set in pushpoold json 'reward' => '50', // Reward for finding blocks, fixed value but changes someday 'confirmations' => '120', // Confirmations per block needed to credit transactions 'memcache' => array(