Updated some comments
This commit is contained in:
parent
2f4425a087
commit
c898ecd52c
@ -38,7 +38,7 @@ Features (need additional testing)
|
|||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
* node v0.10+
|
* node v0.10+
|
||||||
* coin daemon
|
* coin daemon (preferably one with a relatively updated API and not some crapcoin :p)
|
||||||
|
|
||||||
|
|
||||||
Example Usage
|
Example Usage
|
||||||
|
|||||||
@ -54,11 +54,14 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
|
|
||||||
|
|
||||||
if (options.varDiff.mode === 'safe'){
|
if (options.varDiff.mode === 'safe'){
|
||||||
// We request to set the newDiff @ the next difficulty retarget
|
/* We request to set the newDiff @ the next difficulty retarget
|
||||||
// (which should happen when a new job comes in - AKA BLOCK)
|
(which should happen when a new job comes in - AKA BLOCK) */
|
||||||
client.enqueueNextDifficulty(newDiff);
|
client.enqueueNextDifficulty(newDiff);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
/* Send new difficulty, then force miner to use new diff by resending the
|
||||||
|
current job parameters but with the "clean jobs" flag set to false
|
||||||
|
so the miner doesn't restart work and submit duplicate shares */
|
||||||
client.sendDifficulty(newDiff);
|
client.sendDifficulty(newDiff);
|
||||||
var job = _this.jobManager.currentJob.getJobParams();
|
var job = _this.jobManager.currentJob.getJobParams();
|
||||||
job[8] = false;
|
job[8] = false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user