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;
// 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();

View File

@ -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",