You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
};varsubmitTime=Date.now()/1000|0;varjob=this.validJobs[jobId];if(typeofjob==='undefined'||job.jobId!=jobId){returnshareError([21,'job not found']);}if(nTime.length!==8){returnshareError([20,'incorrect size of ntime']);}//TODO(alstr): Fix with Decker's changeletnTimeInt=parseInt(nTime.substr(6,2)+nTime.substr(4,2)+nTime.substr(2,2)+nTime.substr(0,2),16);if(Number.isNaN(nTimeInt)){returnshareError([20,'invalid ntime'])}if(nTimeInt<job.rpcData.curtime||nTimeInt>submitTime+7200){returnshareError([20,'ntime out of range']);}if(nonce.length!==64){returnshareError([20,'incorrect size of nonce']);}if(soln.length!==2694){returnshareError([20,'incorrect size of solution']);}if(!job.registerSubmit(extraNonce1,extraNonce2,nTime,nonce)){returnshareError([22,'duplicate share']);}varheaderBuffer=job.serializeHeader(nTime,nonce);// 144 bytes (doesn't contain soln)varheaderSolnBuffer=newBuffer.concat([headerBuffer,newBuffer(soln,'hex')]);
The text was updated successfully, but these errors were encountered:
KMD-solo-mining/lib/stratum/jobManager.js
Line 113 in be66b06
The text was updated successfully, but these errors were encountered: