Compare commits

..

2 Commits

Author SHA1 Message Date
MoneroOcean b402ceb37f Updated to new nan version 2021-07-20 17:23:14 +00:00
MoneroOcean f31a2751ab Added autolykos2 support 2021-07-20 04:27:04 +00:00
2 changed files with 12 additions and 2 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)
};
};
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "cryptoforknote-util",
"version": "9.2.0",
"version": "10.0.0",
"main": "cryptoforknote-util",
"author": {
"name": "LucasJones",
@@ -13,7 +13,7 @@
"dependencies": {
"promise": "*",
"bindings": "*",
"nan": "^2.0.0",
"nan": "^2.14.2",
"bignum": "^0.13.1",
"sha3": "*",
"varuint-bitcoin": "^1.0.4",