Move the special 20-minute rule check before LWMA calculation for clarity and maintain the same behavior. Remove redundant else block and consolidate the logic for returning last non-special-min-difficulty block.
- Apply LWMA difficulty calculation for testnet from block 0 to match mainnet behavior
- Clarify testnet min-difficulty rule by using explicit 20 minute threshold instead of nPowTargetSpacing*2