mirror of https://github.com/BTCPrivate/z-nomp.git
Merge pull request #20 from UdjinM6/master
enabled:true seems more natural than disabled:false in poolOptions
This commit is contained in:
commit
2e79bc098d
4
init.js
4
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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"disabled": true,
|
||||
"enabled": false,
|
||||
"coin": "darkcoin.json",
|
||||
|
||||
"shareProcessing": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"disabled": true,
|
||||
"enabled": false,
|
||||
"coin": "galleon.json",
|
||||
|
||||
"address": "GRAiuGCWLrL8Psdr6pkhLpxrQGHdYfrSEz",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"disabled": true,
|
||||
"enabled": false,
|
||||
"coin": "helixcoin.json",
|
||||
|
||||
"shareProcessing": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"disabled": true,
|
||||
"enabled": false,
|
||||
"coin": "hirocoin.json",
|
||||
|
||||
"shareProcessing": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"disabled": true,
|
||||
"enabled": false,
|
||||
"coin": "hobonickels.json",
|
||||
|
||||
"shareProcessing": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"disabled": false,
|
||||
"enabled": false,
|
||||
"coin": "litecoin.json",
|
||||
|
||||
"shareProcessing": {
|
||||
|
|
Loading…
Reference in New Issue