Added autolykos2 support

This commit is contained in:
MoneroOcean
2021-07-20 04:27:04 +00:00
parent af5a7c2186
commit f31a2751ab
2 changed files with 11 additions and 1 deletions

View File

@@ -189,4 +189,14 @@ module.exports.EthBlockTemplate = function(rpcData) {
difficulty: difficulty,
height: parseInt(rpcData[3])
};
};
module.exports.ErgBlockTemplate = function(rpcData) {
const difficulty = module.exports.baseDiff().div(bignum(rpcData.b)).toNumber();
return {
hash: rpcData.msg,
hash2: rpcData.pk,
difficulty: difficulty,
height: parseInt(rpcData.h)
};
};

View File

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