Permalink
Browse files

Use a lower share difficulty in script mode with bfgminer

  • Loading branch information...
gades committed Jul 12, 2014
1 parent f9063ca commit 9f73b1824c5aa3715346fa5518a9464a192c012a
Showing with 2 additions and 2 deletions.
  1. +2 −2 p2pool/bitcoin/stratum.py
@@ -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

1 comment on commit 9f73b18

@derubm

This comment has been minimized.

Show comment
Hide comment
@derubm

derubm Aug 20, 2017

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

derubm commented on 9f73b18 Aug 20, 2017

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

Please sign in to comment.