diff --git a/index.js b/index.js index ada9922..40322cd 100644 --- a/index.js +++ b/index.js @@ -182,7 +182,7 @@ module.exports.constructNewDeroBlob = function(blockTemplate, nonceBuff) { }; module.exports.EthBlockTemplate = function(rpcData) { - const difficulty = parseFloat((module.exports.baseEth() / bignum(rpcData[2].lstrip("0x"), 16).toNumber()).toFixed(19)); + const difficulty = parseFloat((module.exports.baseEthDiff() / bignum(rpcData[2].lstrip("0x"), 16).toNumber()).toFixed(19)); return { hash: rpcData[0].lstrip("0x"), seed_hash: rpcData[1].lstrip("0x"), diff --git a/package.json b/package.json index 5283e5e..b83c2f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoforknote-util", - "version": "9.1.0", + "version": "9.1.1", "main": "cryptoforknote-util", "author": { "name": "LucasJones",