Eth draft support

This commit is contained in:
MoneroOcean
2021-01-22 21:14:28 +00:00
parent d405a871a4
commit 80b9b2be12
2 changed files with 2 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ module.exports.constructNewDeroBlob = function(blockTemplate, nonceBuff) {
};
module.exports.EthBlockTemplate = function(rpcData) {
const difficulty = (module.exports.baseDiff() / bignum(rpcData[2].substr(2), 16)).toNumber();
const difficulty = module.exports.baseDiff().div(bignum(rpcData[2].substr(2), 16)).toNumber();
return {
hash: rpcData[0].substr(2),
seed_hash: rpcData[1].substr(2),

View File

@@ -1,6 +1,6 @@
{
"name": "cryptoforknote-util",
"version": "9.1.3",
"version": "9.1.4",
"main": "cryptoforknote-util",
"author": {
"name": "LucasJones",