From 76f2f2866555a603880abafc42c83ff06dcf23f9 Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 3 Apr 2015 01:13:22 +0300 Subject: [PATCH] added PENDING_WORKS to filter too --- lib/node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node.js b/lib/node.js index 42b64bc..5bb5d41 100644 --- a/lib/node.js +++ b/lib/node.js @@ -373,7 +373,9 @@ Node.prototype.setWatches = function() this.pendingFilter = web3.eth.filter('pending'); this.pendingFilter.watch( function(log) { - self.update(); + if(PENDING_WORKS) { + self.update(); + } }); this.chainFilter = web3.eth.filter('latest');