Skip to content

Commit

Permalink
enabled:true seems more natural then disabled:false in poolOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene@ubuntu committed Mar 28, 2014
1 parent a8d0f00 commit c5e650c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pool_configs/darkcoin_example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "darkcoin.json",

"shareProcessing": {
Expand Down
2 changes: 1 addition & 1 deletion pool_configs/galleon_example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "galleon.json",

"address": "GRAiuGCWLrL8Psdr6pkhLpxrQGHdYfrSEz",
Expand Down
2 changes: 1 addition & 1 deletion pool_configs/helixcoin_example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "helixcoin.json",

"shareProcessing": {
Expand Down
2 changes: 1 addition & 1 deletion pool_configs/hirocoin_example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "hirocoin.json",

"shareProcessing": {
Expand Down
2 changes: 1 addition & 1 deletion pool_configs/hobonickels_example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"disabled": true,
"enabled": false,
"coin": "hobonickels.json",

"shareProcessing": {
Expand Down
2 changes: 1 addition & 1 deletion pool_configs/litecoin_example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"disabled": false,
"enabled": false,
"coin": "litecoin.json",

"shareProcessing": {
Expand Down

0 comments on commit c5e650c

Please sign in to comment.