diff --git a/lib/pool.js b/lib/pool.js index 54e7af85c..ba59a953c 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -518,7 +518,11 @@ function handleMinerMethod(method, params, ip, portData, sendReply, pushMessage) return; } + params.nonce = params.nonce.substr(0, 8).toLowerCase(); + if (job.submissions.indexOf(params.nonce) !== -1){ + var minerText = miner ? (' ' + miner.login + '@' + miner.ip) : ''; + log('warn', logSystem, 'Duplicate share: ' + JSON.stringify(params) + ' from ' + minerText); sendReply('Duplicate share'); return; }