Network difficulty and halving