From fb319b3ddd79030d5da28c4b5dda29da1e89f32d Mon Sep 17 00:00:00 2001 From: cubedro Date: Sat, 28 Feb 2015 23:11:35 +0200 Subject: [PATCH] changed chain watch to changed --- lib/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node.js b/lib/node.js index 76e2bcd..92791b2 100644 --- a/lib/node.js +++ b/lib/node.js @@ -344,7 +344,7 @@ Node.prototype.setWatches = function() }); this.chainWatch = web3.eth.watch('chain'); - this.chainWatch.messages(function(log) { + this.chainWatch.changed(function(log) { console.log('block changed'); self.update(); });