Set global difficulty variable to use average of last 500 blocks