Skip to content

Commit

Permalink
Use a lower share difficulty in script mode with bfgminer
Browse files Browse the repository at this point in the history
  • Loading branch information
gades committed Jul 12, 2014
1 parent f9063ca commit 9f73b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2pool/bitcoin/stratum.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ 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_notify(
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
x['coinb1'].encode('hex'), # coinb1
Expand Down

0 comments on commit 9f73b18

Please sign in to comment.