From 2e988bee9ed9b544ba23e2acaea449e17899e21f Mon Sep 17 00:00:00 2001 From: cubedro Date: Wed, 4 Mar 2015 23:50:51 +0200 Subject: [PATCH] fixed chain watch --- lib/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node.js b/lib/node.js index d22b4c6..56da618 100644 --- a/lib/node.js +++ b/lib/node.js @@ -346,7 +346,7 @@ Node.prototype.setWatches = function() }); this.chainWatch = web3.eth.watch('chain'); - this.chainWatch.changed(function(log) { + this.chainWatch.message(function(log) { console.log('block changed'); self.update(); });