Update for the pool nonce save location.

This commit is contained in:
Alexander Blair
2017-07-04 12:05:55 -07:00
parent a875391b0c
commit e0d39be694
+4 -2
View File
@@ -479,6 +479,8 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
height: activeBlockTemplate.height,
difficulty: this.difficulty,
diffHex: this.diffHex,
clientPoolLocation: activeBlockTemplate.clientPoolLocation,
clientNonceLocation: activeBlockTemplate.clientNonceLocation,
submissions: []
};
@@ -567,8 +569,8 @@ function processShare(miner, job, blockTemplate, params) {
} else {
blockTemplate.buffer.copy(template);
template.writeUInt32BE(job.extraNonce, blockTemplate.reserveOffset);
template.writeUInt32BE(params.workerNonce, blockTemplate.clientNonceLocation);
template.writeUInt32BE(params.poolNonce, blockTemplate.clientPoolLocation);
template.writeUInt32BE(params.poolNonce, job.clientPoolLocation);
template.writeUInt32BE(params.workerNonce, job.clientNonceLocation);
}
let shareBuffer = global.coinFuncs.constructNewBlob(template, new Buffer(nonce, 'hex'));