Update with cryptonight-hashing for XMR. Thanks to Mayday30/MoneroOcean for updating the CN libs for the Variant hardfork.

git pull; npm install; then restart services.
This commit is contained in:
Alexander Blair 2018-04-05 13:58:08 -07:00
parent 4ddd61c951
commit 9c52de91ed
3 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
"use strict";
const bignum = require('bignum');
const cnUtil = require('cryptonote-util');
const multiHashing = require('multi-hashing');
const multiHashing = require("cryptonight-hashing");
const crypto = require('crypto');
const debug = require('debug')('coinFuncs');
@ -162,8 +162,9 @@ function Coin(data){
};
};
this.cryptoNight = multiHashing.cryptonight;
this.cryptoNight = function(convertedBlob) {
return multiHashing.cryptonight(convertedBlob, convertedBlob[0] >= 7 ? convertedBlob[0] - 6 : 0);
}
}
module.exports = Coin;

View file

@ -304,7 +304,7 @@ let paymentQueue = async.queue(function (paymentDetails, callback) {
global.support.rpcWallet(transferFunc, paymentDetails, function (body) {
debug("Payment made: " + JSON.stringify(body));
if (body.hasOwnProperty('error')) {
if (body.error.message === "not enough money"){
if (body.error.message === "not enough money" || body.error.message === "not enough unlocked money"){
console.error("Issue making payments, not enough money, will try later");
if(!extraPaymentRound){
setTimeout(function(){

View file

@ -43,6 +43,7 @@
},
"optionalDependencies": {
"cryptonote-util": "git://github.com/Snipa22/node-cryptonote-util.git#xmr-Nan-2.0",
"cryptonight-hashing": "git+https://github.com/MoneroOcean/node-cryptonight-hashing.git",
"multi-hashing": "git+https://github.com/Snipa22/node-multi-hashing-aesni.git#v0.1"
}
}