Permalink
Browse files

Fix Capitalisaton Issue. Allowing for duplicate Shares

  • Loading branch information...
ahmedbodi ahmedbodi
ahmedbodi authored and ahmedbodi committed May 7, 2015
1 parent b9f2bce commit d5b4ffddf60117c177945e0ea544288e9a9b2db9
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/template_registry.py
View
@@ -213,6 +213,10 @@ def submit_share(self, job_id, worker_name, session, extranonce1_bin, extranonce
if len(extranonce2) != self.extranonce2_size * 2:
raise SubmitException("Incorrect size of extranonce2. Expected %d chars" % (self.extranonce2_size*2))
# normalize the case to prevent duplication of valid shares by the client
ntime = ntime.lower()
nonce = nonce.lower()
extranonce2 = extranonce2.lower()
# Check for job
job = self.get_job(job_id, worker_name, ip)
if job == None:

0 comments on commit d5b4ffd

Please sign in to comment.