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
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

1 comment on commit 9f73b18

@derubm
Copy link

@derubm derubm commented on 9f73b18 Aug 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks for MRR rigs and many other miners stratum mode.

Please sign in to comment.