Posting a maxcoin fix in the scanhash function that seems to prevent duplicate share generation. Brings down the reject rate a lot.