From 0a0e95df135c92bb4a327f9d964c41b81ed10aed Mon Sep 17 00:00:00 2001 From: cubedro Date: Sat, 28 Mar 2015 19:16:52 +0200 Subject: [PATCH] updated ethereum.js --- lib/node.js | 22 +++++++++++----------- package.json | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/node.js b/lib/node.js index ebe5325..a1a9292 100644 --- a/lib/node.js +++ b/lib/node.js @@ -343,18 +343,18 @@ Node.prototype.setWatches = function() { var self = this; - // this.pendingFilter = web3.eth.filter('pending'); - // this.pendingFilter.watch( function(log) { - // console.log('pending changed', log); - // // console.log(self.pendingFilter.get()); - // // self.stats.pending = parseInt(log.number); - // }); + this.pendingFilter = web3.eth.filter('pending'); + this.pendingFilter.watch( function(log) { + console.log('pending changed:', log); + // console.log(self.pendingFilter.get()); + // self.stats.pending = parseInt(log.number); + }); - // this.chainFilter = web3.eth.filter('latest'); - // this.chainFilter.watch(function(log) { - // console.log('block changed:', log); - // // self.update(); - // }); + this.chainFilter = web3.eth.filter('latest'); + this.chainFilter.watch(function(log) { + console.log('block changed:', log); + self.update(); + }); this.updateInterval = setInterval(function(){ self.update(); diff --git a/package.json b/package.json index cc35c07..85021fd 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "debug": "~2.1.3", - "ethereum.js": "0.2.0", + "ethereum.js": "0.2.1", "lodash": "^3.6.0", "primus": "^3.0.2", "primus-emit": "^0.1.2",