diff --git a/init.js b/init.js index 5ecfe89..4d477cf 100644 --- a/init.js +++ b/init.js @@ -75,7 +75,7 @@ var buildPoolConfigs = function(){ var configs = {}; fs.readdirSync('pool_configs').forEach(function(file){ var poolOptions = JSON.parse(JSON.minify(fs.readFileSync('pool_configs/' + file, {encoding: 'utf8'}))); - if (poolOptions.disabled) return; + if (!poolOptions.enabled) return; var coinFilePath = 'coins/' + poolOptions.coin; if (!fs.existsSync(coinFilePath)){ logger.error('Master', poolOptions.coin, 'could not find file: ' + coinFilePath); @@ -193,7 +193,7 @@ var startPaymentProcessor = function(poolConfigs){ var enabledForAny = false; for (var pool in poolConfigs){ var p = poolConfigs[pool]; - var enabled = !p.disabled && p.shareProcessing && p.shareProcessing.internal && p.shareProcessing.internal.enabled; + var enabled = p.enabled && p.shareProcessing && p.shareProcessing.internal && p.shareProcessing.internal.enabled; if (enabled){ enabledForAny = true; break; diff --git a/libs/paymentProcessor.js b/libs/paymentProcessor.js index d805771..953cc6c 100644 --- a/libs/paymentProcessor.js +++ b/libs/paymentProcessor.js @@ -191,7 +191,7 @@ function SetupForPool(logger, poolOptions){ } else if (tx.error || !tx.result){ logger.error(logSystem, logComponent, - 'error with requesting transaction from block daemon: ' + JSON.stringify(tx)); + 'Error with requesting transaction from block daemon: ' + JSON.stringify(tx)); } else{ round.category = tx.result.details[0].category; diff --git a/pool_configs/darkcoin_example.json b/pool_configs/darkcoin_example.json index 0ab86a5..7b8487a 100644 --- a/pool_configs/darkcoin_example.json +++ b/pool_configs/darkcoin_example.json @@ -1,5 +1,5 @@ { - "disabled": true, + "enabled": false, "coin": "darkcoin.json", "shareProcessing": { diff --git a/pool_configs/galleon_example.json b/pool_configs/galleon_example.json index b195a66..e149565 100644 --- a/pool_configs/galleon_example.json +++ b/pool_configs/galleon_example.json @@ -1,5 +1,5 @@ { - "disabled": true, + "enabled": false, "coin": "galleon.json", "address": "GRAiuGCWLrL8Psdr6pkhLpxrQGHdYfrSEz", diff --git a/pool_configs/helixcoin_example.json b/pool_configs/helixcoin_example.json index 6eb6e76..31292a4 100644 --- a/pool_configs/helixcoin_example.json +++ b/pool_configs/helixcoin_example.json @@ -1,5 +1,5 @@ { - "disabled": true, + "enabled": false, "coin": "helixcoin.json", "shareProcessing": { diff --git a/pool_configs/hirocoin_example.json b/pool_configs/hirocoin_example.json index 295065a..9c49962 100644 --- a/pool_configs/hirocoin_example.json +++ b/pool_configs/hirocoin_example.json @@ -1,5 +1,5 @@ { - "disabled": true, + "enabled": false, "coin": "hirocoin.json", "shareProcessing": { diff --git a/pool_configs/hobonickels_example.json b/pool_configs/hobonickels_example.json index 3e57c63..bc3e4eb 100644 --- a/pool_configs/hobonickels_example.json +++ b/pool_configs/hobonickels_example.json @@ -1,5 +1,5 @@ { - "disabled": true, + "enabled": false, "coin": "hobonickels.json", "shareProcessing": { diff --git a/pool_configs/litecoin_example.json b/pool_configs/litecoin_example.json index 27e68fc..ce54056 100644 --- a/pool_configs/litecoin_example.json +++ b/pool_configs/litecoin_example.json @@ -1,5 +1,5 @@ { - "disabled": false, + "enabled": false, "coin": "litecoin.json", "shareProcessing": {