added txRefreshInterval

This commit is contained in:
Matt 2014-03-19 14:53:00 -06:00
parent f85e7f0825
commit f0d90b71c2
3 changed files with 6 additions and 12 deletions

View File

@ -239,6 +239,11 @@ Description of options:
"blockRefreshInterval": 1000, //How often to poll RPC daemons for new blocks, in milliseconds
/* How many milliseconds should have passed before new block transactions will trigger a new
job broadcast. */
"txRefreshInterval": 20000,
//instanceId: 37, //Recommend not using this because a crypto-random one will be generated
/* Some attackers will create thousands of workers that use up all available socket connections,

View File

@ -102,22 +102,10 @@ module.exports = function(logger, portalConfig, poolConfigs){
portalStats.global.hashrate += coinStats.hashrate;
portalStats.global.workers += Object.keys(coinStats.workers).length;
});
console.log(JSON.stringify(portalStats, null, 4));
_this.stats = portalStats;
callback();
});
/*
{ global: {
}
*/
//get stats like hashrate and in/valid shares/blocks and workers in current round
};
};

View File

@ -37,6 +37,7 @@
"address": "mfsm1ckZKTTjDz94KonZZsbZnAbm1UV4BF",
"blockRefreshInterval": 1000,
"txRefreshInterval": 20000,
"connectionTimeout": 600,
"banning": {