Skip to content

Commit

Permalink
Merge pull request p2pool#210 from gades/fix_new_bfgminer_version
Browse files Browse the repository at this point in the history
Use a lower share difficulty in script mode with bfgminer
  • Loading branch information
forrestv committed Jul 12, 2014
2 parents f9063ca + a24279b commit ce9e5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2pool/bitcoin/stratum.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _send_work(self):
self.transport.loseConnection()
return
jobid = str(random.randrange(2**128))
self.other.svc_mining.rpc_set_difficulty(bitcoin_data.target_to_difficulty(x['share_target'])*self.wb.net.DUMB_SCRYPT_DIFF).addErrback(lambda err: None)
self.other.svc_mining.rpc_set_difficulty(bitcoin_data.target_to_difficulty(x['share_target'])).addErrback(lambda err: None)
self.other.svc_mining.rpc_notify(
jobid, # jobid
getwork._swap4(pack.IntType(256).pack(x['previous_block'])).encode('hex'), # prevhash
Expand Down

0 comments on commit ce9e5a2

Please sign in to comment.