From 842e5d208fd9c5dd200dac9a9a3fe0401b569f01 Mon Sep 17 00:00:00 2001 From: cubedro Date: Sat, 13 Jun 2015 12:48:28 +0300 Subject: [PATCH] tweaked chain debounce --- lib/node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node.js b/lib/node.js index a018746..4ed331e 100644 --- a/lib/node.js +++ b/lib/node.js @@ -714,14 +714,14 @@ Node.prototype.setWatches = function() console.info('>>>', 'Chain Filter triggered: ', chalk.reset.red(hash), '- last trigger:', chalk.reset.cyan(time)); - if(time < 5) + if(time < 50) { self._chainDebouncer++; } else { self._chainDebouncer = 0; } - if(self._chainDebouncer < 20) + if(self._chainDebouncer < 10) { self._latestQueue.push(hash); } @@ -730,7 +730,7 @@ Node.prototype.setWatches = function() debounce(function() { self._latestQueue.push(hash); self._chainDebouncer = 0; - }, 5); + }, 50); } });