From f0d90b71c2495ce8b902b53cdc3d6f98986a0d67 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 19 Mar 2014 14:53:00 -0600 Subject: [PATCH] added txRefreshInterval --- README.md | 5 +++++ libs/stats.js | 12 ------------ pool_configs/litecoin_testnet_example.json | 1 + 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index fd36c26..cfbfbce 100644 --- a/README.md +++ b/README.md @@ -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, diff --git a/libs/stats.js b/libs/stats.js index f42f750..b650cb9 100644 --- a/libs/stats.js +++ b/libs/stats.js @@ -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 - }; }; diff --git a/pool_configs/litecoin_testnet_example.json b/pool_configs/litecoin_testnet_example.json index 3ff4fbe..695cd74 100644 --- a/pool_configs/litecoin_testnet_example.json +++ b/pool_configs/litecoin_testnet_example.json @@ -37,6 +37,7 @@ "address": "mfsm1ckZKTTjDz94KonZZsbZnAbm1UV4BF", "blockRefreshInterval": 1000, + "txRefreshInterval": 20000, "connectionTimeout": 600, "banning": {