Fixed current difficulty.

This commit is contained in:
Chris Kleeschulte 2017-08-15 17:05:04 -04:00
parent 21e30645cd
commit 5bcfd8fcd8

View File

@ -141,7 +141,7 @@ BlockController.prototype.transformBlock = function(block, info) {
time: block.ts, time: block.ts,
nonce: block.nonce, nonce: block.nonce,
bits: block.bits, bits: block.bits,
difficulty: this._header.getDifficulty(), difficulty: this._header.getCurrentDifficulty(),
chainwork: info.chainwork, chainwork: info.chainwork,
confirmations: this._block.getTip().height - info.height + 1, confirmations: this._block.getTip().height - info.height + 1,
previousblockhash: info.prevHash, previousblockhash: info.prevHash,