fixed bugs

This commit is contained in:
cubedro 2015-03-22 23:16:30 +02:00
parent df58525fd4
commit ad2f50ac87
1 changed files with 8 additions and 8 deletions

View File

@ -119,7 +119,7 @@ Node.prototype.isActive = function()
this.stats.errors = [];
try {
var peers = web3.net.peerCount;
var peers = web3.toDecimal(web3.net.peerCount);
if(peers !== null)
{
@ -338,13 +338,13 @@ Node.prototype.setWatches = function()
{
var self = this;
this.pendingWatch = web3.eth.filter('pending');
this.pendingWatch.watch( function(log) {
console.log(log);
// console.log(self.pendingWatch.get());
// console.log('pending changed');
// self.stats.pending = parseInt(log.number);
});
// this.pendingWatch = web3.eth.filter('pending');
// this.pendingWatch.watch( function(log) {
// console.log(log);
// // console.log(self.pendingWatch.get());
// // console.log('pending changed');
// // self.stats.pending = parseInt(log.number);
// });
// this.chainWatch = web3.eth.watch('chain');
// this.chainWatch.messages(function(log) {