From 133ce797b7071cd60054dbb618aa4dd3e7a68a6f Mon Sep 17 00:00:00 2001 From: hellcatz Date: Thu, 4 May 2017 18:56:05 -0700 Subject: [PATCH] Update stats.js BugFix: prevent `confirms` from being null --- libs/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/stats.js b/libs/stats.js index 5f30d38..2acc0d2 100644 --- a/libs/stats.js +++ b/libs/stats.js @@ -344,7 +344,7 @@ module.exports = function(logger, portalConfig, poolConfigs){ /* show all pending blocks */ pending: { blocks: replies[i + 6].sort(sortBlocks), - confirms: replies[i + 9] + confirms: (replies[i + 9] || {}) }, /* show last 5 found blocks */ confirmed: {