moved target difficulty updates to miner api thread