updated ethereum.js

This commit is contained in:
cubedro 2015-03-28 19:16:52 +02:00
parent e2ea53de8a
commit 0a0e95df13
2 changed files with 12 additions and 12 deletions

View File

@ -343,18 +343,18 @@ Node.prototype.setWatches = function()
{ {
var self = this; var self = this;
// this.pendingFilter = web3.eth.filter('pending'); this.pendingFilter = web3.eth.filter('pending');
// this.pendingFilter.watch( function(log) { this.pendingFilter.watch( function(log) {
// console.log('pending changed', log); console.log('pending changed:', log);
// // console.log(self.pendingFilter.get()); // console.log(self.pendingFilter.get());
// // self.stats.pending = parseInt(log.number); // self.stats.pending = parseInt(log.number);
// }); });
// this.chainFilter = web3.eth.filter('latest'); this.chainFilter = web3.eth.filter('latest');
// this.chainFilter.watch(function(log) { this.chainFilter.watch(function(log) {
// console.log('block changed:', log); console.log('block changed:', log);
// // self.update(); self.update();
// }); });
this.updateInterval = setInterval(function(){ this.updateInterval = setInterval(function(){
self.update(); self.update();

View File

@ -9,7 +9,7 @@
}, },
"dependencies": { "dependencies": {
"debug": "~2.1.3", "debug": "~2.1.3",
"ethereum.js": "0.2.0", "ethereum.js": "0.2.1",
"lodash": "^3.6.0", "lodash": "^3.6.0",
"primus": "^3.0.2", "primus": "^3.0.2",
"primus-emit": "^0.1.2", "primus-emit": "^0.1.2",