updated ethereum.js
This commit is contained in:
parent
e2ea53de8a
commit
0a0e95df13
22
lib/node.js
22
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();
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user