mirror of https://github.com/BTCPrivate/z-nomp.git
added txRefreshInterval
This commit is contained in:
parent
f85e7f0825
commit
f0d90b71c2
|
@ -239,6 +239,11 @@ Description of options:
|
||||||
|
|
||||||
"blockRefreshInterval": 1000, //How often to poll RPC daemons for new blocks, in milliseconds
|
"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
|
//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,
|
/* Some attackers will create thousands of workers that use up all available socket connections,
|
||||||
|
|
|
@ -102,22 +102,10 @@ module.exports = function(logger, portalConfig, poolConfigs){
|
||||||
portalStats.global.hashrate += coinStats.hashrate;
|
portalStats.global.hashrate += coinStats.hashrate;
|
||||||
portalStats.global.workers += Object.keys(coinStats.workers).length;
|
portalStats.global.workers += Object.keys(coinStats.workers).length;
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(JSON.stringify(portalStats, null, 4));
|
|
||||||
|
|
||||||
_this.stats = portalStats;
|
_this.stats = portalStats;
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
{ global: {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
//get stats like hashrate and in/valid shares/blocks and workers in current round
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
"address": "mfsm1ckZKTTjDz94KonZZsbZnAbm1UV4BF",
|
"address": "mfsm1ckZKTTjDz94KonZZsbZnAbm1UV4BF",
|
||||||
"blockRefreshInterval": 1000,
|
"blockRefreshInterval": 1000,
|
||||||
|
"txRefreshInterval": 20000,
|
||||||
"connectionTimeout": 600,
|
"connectionTimeout": 600,
|
||||||
|
|
||||||
"banning": {
|
"banning": {
|
||||||
|
|
Loading…
Reference in New Issue