Skip to content

Commit

Permalink
fixed calculation of estimated rate target quantifier
Browse files Browse the repository at this point in the history
  • Loading branch information
m0mchil committed Jul 14, 2011
1 parent b1202bb commit ffc0f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BitcoinMiner.py
Expand Up @@ -230,7 +230,7 @@ def prepareWork(self, work):
p['target'] = np.array(unpack('IIIIIIII', work['target'].decode('hex')), dtype=np.uint32)
p['state'] = sha256(STATE, data0)

p['targetQ']= 2**256 / int(''.join(list(chunks(work['target'], 8))[::-1]), 16)
p['targetQ']= 2**256 / int(''.join(list(chunks(work['target'], 2))[::-1]), 16)
p['f'] = np.zeros(8, np.uint32)
p['state2'] = partial(p['state'], p['data'], p['f'])
calculateF(p['state'], p['data'], p['f'], p['state2'])
Expand Down

0 comments on commit ffc0f50

Please sign in to comment.