Added DigiShield to become active on the same block as POS. Tidied up
the difficulty function selection logic.