Skip to content

Commit

Permalink
make compatible with f2pool
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsmith540 committed Feb 18, 2020
1 parent e8f9ab5 commit bfe5961
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,28 @@ Optional configuration items (just leave blank and hit enter if you dont know) :
2. the stratum password (optional)
3. (pool only) pool difficulty (1024 minumum on 6block, 512 minumum on hnspool), or set to -1 for variable difficulty

## POOL SETTINGS

#### F2POOL
non-registered:
**username**: wallet.workerName
**password**: anything

registered:
**username**: username.workerName
**password**: anything

#### 6block

**username**: username.workerName
**password**: anything

#### hnspool

**username**: hnspool_registered_username
**password**: hnspool_registered_password



#### Mining FAQ:

Expand Down
2 changes: 1 addition & 1 deletion miner/HandyMiner.js
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ class HandyMiner {
submission.push(lastJob.work.jobID);
submission.push(lastJob.nonce2);
submission.push(lastJob.work.time.toString(16));
if(_this.config.mode == 'pool' && !_this.isMGoing && _this.config.host.indexOf('6block') >= 0){
if(_this.config.mode == 'pool' && !_this.isMGoing && (_this.config.host.indexOf('6block') >= 0 || _this.config.host.indexOf('f2pool') >= 0 )){
//6block formats to length == 8
submission.push(outJSON.nonce.slice(8,16));
}
Expand Down

0 comments on commit bfe5961

Please sign in to comment.