mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Update for the pool nonce save location.
This commit is contained in:
+4
-2
@@ -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'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user