Compare commits

...

1 Commits

Author SHA1 Message Date
MoneroOcean f31a2751ab Added autolykos2 support 2021-07-20 04:27:04 +00:00
2 changed files with 11 additions and 1 deletions
+10
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)
};
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cryptoforknote-util",
"version": "9.2.0",
"version": "10.0.0",
"main": "cryptoforknote-util",
"author": {
"name": "LucasJones",