From 71128cde106f9c53f1e17d2d219e7858b000d274 Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 5 May 2015 10:18:36 +0300 Subject: [PATCH] fixed network hashrate --- models/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/history.js b/models/history.js index 26fa9ed..cbe8f96 100644 --- a/models/history.js +++ b/models/history.js @@ -336,7 +336,7 @@ History.prototype.getAvgHashrate = function() var avgBlocktime = (_.sum(blocktimeHistory) / blocktimeHistory.length)/1000; - return avgDifficulty * 12 * ( 12 / avgBlocktime ); + return this.bestBlock().block.difficulty / 12 * ( 12 / avgBlocktime ); } History.prototype.getMinersCount = function()