diff --git a/index.js b/index.js index 40322cd..9645f48 100644 --- a/index.js +++ b/index.js @@ -182,10 +182,10 @@ module.exports.constructNewDeroBlob = function(blockTemplate, nonceBuff) { }; module.exports.EthBlockTemplate = function(rpcData) { - const difficulty = parseFloat((module.exports.baseEthDiff() / bignum(rpcData[2].lstrip("0x"), 16).toNumber()).toFixed(19)); + const difficulty = parseFloat((module.exports.baseEthDiff() / bignum(rpcData[2].substr(2), 16).toNumber()).toFixed(19)); return { - hash: rpcData[0].lstrip("0x"), - seed_hash: rpcData[1].lstrip("0x"), + hash: rpcData[0].substr(2), + seed_hash: rpcData[1].substr(2), difficulty: difficulty }; }; \ No newline at end of file diff --git a/package.json b/package.json index b83c2f3..268a0fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoforknote-util", - "version": "9.1.1", + "version": "9.1.2", "main": "cryptoforknote-util", "author": { "name": "LucasJones",