zone117x/node-stratum — pull request #7 by bart-is (2014-02-21 23:42:50+00:00)
Title: Fixed calculating user share target by using bignum

I was testing this on a dev server with cpuminer so I set difficulty to 1. The pool sometimes returned “low difficulty share” error for valid shares. I know this won't occur in real-life that often as difficulties are higher and it's less probable that submitted shares will be on the edge of the target, but it's still worth fixing it.

Floating arithmetics is only an estimation and if we want precise arithmetics then it's exactly what libs like bignum are for.