Eth draft support

This commit is contained in:
MoneroOcean
2021-01-22 08:38:27 +00:00
parent 9021066354
commit 04ba92e6fd
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 = 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"),