Skip to content

Commit

Permalink
Fix diff1 for MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
prydie committed Mar 17, 2014
1 parent 061c26a commit eef6840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/template_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def diff_to_target(self, difficulty):
elif settings.COINDAEMON_ALGO == 'quark':
diff1 = 0x000000ffff000000000000000000000000000000000000000000000000000000
elif settings.coindaemon_algo == 'max':
diff1 = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000
diff1 = 0x0000ffff00000000000000000000000000000000000000000000000000000000
elif settings.COINDAEMON_ALGO == 'keccak':
diff1 = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000
diff1 = 0x0000ffff00000000000000000000000000000000000000000000000000000000
else:
diff1 = 0x00000000ffff0000000000000000000000000000000000000000000000000000
return diff1 / difficulty
Expand Down

0 comments on commit eef6840

Please sign in to comment.