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;
|
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();
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user