Refine startup error messages (e.g. wrong system time) #5342

issue dexX7 opened this issue on November 21, 2014
  1. dexX7 commented at 4:48 PM on November 21, 2014: contributor

    When starting the QT client with a wrong system time, an appearingly unrelated error message is shown:

    systemtime

    debug.log:

    2013-06-09 23:46:15 init message: Verifying blocks...
    2013-06-09 23:46:15 Verifying last 288 blocks at level 3
    2013-06-09 23:46:15 ERROR: CheckBlockHeader() : block timestamp too far in the future
    2013-06-09 23:46:15 ERROR: VerifyDB() : *** found bad block at 309600, hash=00000000cf90d9c6fd903d750c46eb1ce028b69d35006ded291e447bc0ac57b5
    
    2014-11-21 16:02:27 Aborted block database rebuild. Exiting.
    

    Even though it's sort of a matter of perspective ("is the system time or the block time wrong?"), I would prefer a more gentle notice such as "A block with a timestamp too far in the future was found. Please check that your computer's date and time are correct. ... something-about-potential-db-corruption ...".

    I suggest to refine this error message, and others probably as well, and provide further insight about what seems to be the underlying reason that caused such an exception.

  2. laanwj commented at 4:51 PM on November 21, 2014: member

    Seems like a duplicate of #2007 or #2001

  3. laanwj closed this on Nov 21, 2014

  4. DrahtBot locked this on Sep 8, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-01 00:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me