updating the proof of work