Viacoin: Fix Zeitgeist2 attack and avoid overflow in CalculateNextWork
Viacoin: Fix Zeitgeist2 attack and avoid overflow in CalculateNextWork

fixes an issue where a
51% attack can change difficulty at will. Go back the full period unless it's the
first retarget after genesis.

viacoin/viacoin,viacoin/viacoin,viacoin/viacoin,viacoin/viacoin,viacoin/viacoin,viacoin/viacoin