removed trusted from charts

This commit is contained in:
cubedro 2015-06-17 04:45:46 +03:00
parent 0ff2d03a05
commit 0a53f343c3

View File

@ -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)