diff --git a/lib/coins/aeon-rebase.js b/lib/coins/aeon-rebase.js index 5517c3f3..be039bd1 100644 --- a/lib/coins/aeon-rebase.js +++ b/lib/coins/aeon-rebase.js @@ -9,6 +9,7 @@ let hexChars = new RegExp("[0-9a-f]+"); function Coin(data){ this.isxmr = false; + this.isaeon = true; this.bestExchange = global.config.payout.bestExchange; this.data = data; let instanceId = crypto.randomBytes(4); @@ -157,7 +158,7 @@ function Coin(data){ }; this.cryptoNight = function(convertedBlob) { - return multiHashing.cryptonight_light(convertedBlob, convertedBlob[0] >= 7 ? convertedBlob[0] - 6 : 0); + return multiHashing.cryptonight_light(convertedBlob, convertedBlob[0] >= 8 ? 8 : 1); } } diff --git a/lib/coins/aeon.js b/lib/coins/aeon.js index 825155b2..086d3b17 100644 --- a/lib/coins/aeon.js +++ b/lib/coins/aeon.js @@ -9,6 +9,7 @@ let hexChars = new RegExp("[0-9a-f]+"); function Coin(data){ this.isxmr = false; + this.isaeon = false; this.bestExchange = global.config.payout.bestExchange; this.data = data; let instanceId = crypto.randomBytes(4); diff --git a/lib/coins/krb.js b/lib/coins/krb.js index 5bbc020b..7b713b4f 100644 --- a/lib/coins/krb.js +++ b/lib/coins/krb.js @@ -9,6 +9,7 @@ let hexChars = new RegExp("[0-9a-f]+"); function Coin(data){ this.isxmr = false; + this.isaeon = false; this.bestExchange = global.config.payout.bestExchange; this.data = data; let instanceId = crypto.randomBytes(4); diff --git a/lib/coins/xmr.js b/lib/coins/xmr.js index 5cc12441..7a5cfec5 100644 --- a/lib/coins/xmr.js +++ b/lib/coins/xmr.js @@ -9,6 +9,7 @@ let hexChars = new RegExp("[0-9a-f]+"); function Coin(data){ this.isxmr = true; + this.isaeon = false; this.bestExchange = global.config.payout.bestExchange; this.data = data; let instanceId = crypto.randomBytes(4); diff --git a/lib/pool.js b/lib/pool.js index 323c9f03..4acbc0bb 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -625,7 +625,7 @@ function processShare(miner, job, blockTemplate, params, sendReply) { shareType = false; } if (hash.toString('hex') !== resultHash) { - if (job.height >= 1546000 && coinFuncs.isxmr) { + if ((job.height >= 1546000 && coinFuncs.isxmr) || (job.height >= 9999999 && coinFuncs.isaeon)) { hash = multiHashing.cryptonight(convertedBlob, 0); if (hash.toString("hex") === resultHash) { console.error(threadName + "Bad hashing algo (CN/0) from miner " + miner.logString);