Refactor proof of work related functions out of main
move pow constants to chainparams