From 0a53f343c3657e946df5664b8671709165be160e Mon Sep 17 00:00:00 2001 From: cubedro Date: Wed, 17 Jun 2015 04:45:46 +0300 Subject: [PATCH] removed trusted from charts --- lib/history.js | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/lib/history.js b/lib/history.js index c3d5c15..72773d9 100644 --- a/lib/history.js +++ b/lib/history.js @@ -371,10 +371,10 @@ History.prototype.getUncleCount = function() { var uncles = _( this._items ) .sortByOrder( 'height', false ) - .filter(function (item) - { - return item.block.trusted; - }) + // .filter(function (item) + // { + // return item.block.trusted; + // }) .slice(0, MAX_UNCLES) .map(function (item) { @@ -399,10 +399,10 @@ History.prototype.getBlockTimes = function() { var blockTimes = _( this._items ) .sortByOrder( 'height', false ) - .filter(function (item) - { - return item.block.trusted; - }) + // .filter(function (item) + // { + // return item.block.trusted; + // }) .slice(0, MAX_BINS) .reverse() .map(function (item) @@ -478,10 +478,10 @@ History.prototype.getAvgHashrate = function() var blocktimeHistory = _( this._items ) .sortByOrder( 'height', false ) - .filter(function (item) - { - return item.block.trusted; - }) + // .filter(function (item) + // { + // return item.block.trusted; + // }) .slice(0, 64) .map(function (item) { @@ -498,10 +498,10 @@ History.prototype.getMinersCount = function() { var miners = _( this._items ) .sortByOrder( 'height', false ) - .filter(function (item) - { - return item.block.trusted; - }) + // .filter(function (item) + // { + // return item.block.trusted; + // }) .slice(0, MAX_BINS) .map(function (item) { @@ -533,10 +533,10 @@ History.prototype.getCharts = function() { var chartHistory = _( this._items ) .sortByOrder( 'height', false ) - .filter(function (item) - { - return item.block.trusted; - }) + // .filter(function (item) + // { + // return item.block.trusted; + // }) .slice(0, MAX_BINS) .reverse() .map(function (item)