moopless/stratum-mining-litecoin — pull request #34 by erundook (2013-07-08 19:25:48+00:00)
Title: Fix found_block

solution should be in where clause, not in set :)
FROM_UNIXTIME rounds time to seconds, and if that same user had more that one share in that second, bug will pop out, moreover it could be rounded wrong so that share wont be found and block would be missing from the database