bitcoin/bitcoin — pull request #1594 by Diapolo (2012-07-13 07:04:23+00:00)
Title: add logic check to prevent never reaching up to date state on testnet3

- the logic check is active only on testnet
- checks if our node claiming to miss more than 100 blocks AND the last
block we have is not older than 1 1/2 hours
- re-work code parts that check if we have a Statusbar warning
- rename vars for easier to read code: count -> nBlocks, nTotalBlocks ->
nBlocksOfPeers and secs -> nSecsToLastBlock

Fixes #1588