move the difficulty checking from every hash to startup, rather than on every x hashes

worst case, difficulty changes mid-mining, miner spends a few requests submitting invalid coins.