enabled:true seems more natural then disabled:false in poolOptions

This commit is contained in:
Eugene@ubuntu 2014-03-28 16:42:55 +04:00
parent a8d0f00e90
commit c5e650cd6d
7 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "darkcoin.json",
"shareProcessing": {

View File

@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "galleon.json",
"address": "GRAiuGCWLrL8Psdr6pkhLpxrQGHdYfrSEz",

View File

@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "helixcoin.json",
"shareProcessing": {

View File

@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "hirocoin.json",
"shareProcessing": {

View File

@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "hobonickels.json",
"shareProcessing": {

View File

@ -1,5 +1,5 @@
{
"disabled": false,
"enabled": false,
"coin": "litecoin.json",
"shareProcessing": {