Updated some comments

This commit is contained in:
Matt 2014-02-20 00:02:18 -07:00
parent 2f4425a087
commit c898ecd52c
2 changed files with 6 additions and 3 deletions

View File

@ -38,7 +38,7 @@ Features (need additional testing)
Requirements
------------
* node v0.10+
* coin daemon
* coin daemon (preferably one with a relatively updated API and not some crapcoin :p)
Example Usage

View File

@ -54,11 +54,14 @@ var pool = module.exports = function pool(options, authorizeFn){
if (options.varDiff.mode === 'safe'){
// We request to set the newDiff @ the next difficulty retarget
// (which should happen when a new job comes in - AKA BLOCK)
/* We request to set the newDiff @ the next difficulty retarget
(which should happen when a new job comes in - AKA BLOCK) */
client.enqueueNextDifficulty(newDiff);
}
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);
var job = _this.jobManager.currentJob.getJobParams();
job[8] = false;