From 5bcfd8fcd86bf0bb7e5500b561bb929a43ecd340 Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Tue, 15 Aug 2017 17:05:04 -0400 Subject: [PATCH] Fixed current difficulty. --- lib/blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blocks.js b/lib/blocks.js index 1a4dfbb..42e1018 100644 --- a/lib/blocks.js +++ b/lib/blocks.js @@ -141,7 +141,7 @@ BlockController.prototype.transformBlock = function(block, info) { time: block.ts, nonce: block.nonce, bits: block.bits, - difficulty: this._header.getDifficulty(), + difficulty: this._header.getCurrentDifficulty(), chainwork: info.chainwork, confirmations: this._block.getTip().height - info.height + 1, previousblockhash: info.prevHash,