From 2c1d6fa78e27c52836e4892c829b67f5a68114b6 Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 3 Apr 2015 19:34:59 +0300 Subject: [PATCH] added default to 'pending' filter --- lib/node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node.js b/lib/node.js index 5c7bf97..c65f2e9 100644 --- a/lib/node.js +++ b/lib/node.js @@ -381,7 +381,9 @@ Node.prototype.setWatches = function() this.pendingFilter = web3.eth.filter('pending'); this.pendingFilter.watch( function(log) { if(PENDING_WORKS) { - self.update(); + debounce(function() { + self.update(); + }, 50); } });