How to calculate optimal value for static difficult?
Please, provide me some formula, or something? Or point me to something to read about. Google didn't help me with that.

P.S. Is it possible to add worker identification by using "password" field? I have many workers mining on same wallet, so when I press "W" I always get 1  worker with many connections. Can You add an option to identify workers "inside" same wallet or help me to do that (point me to function that I can modernize).