Prevent Qt crash at startup with an empty data directory #2248

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:issue2239 changing 1 files +4 −1
  1. gavinandresen commented at 8:25 PM on January 30, 2013: contributor

    Fixes issue #2239 -- return the main network genesis block time if pindexBest has not yet been set.

  2. Prevent Qt crash at startup with an empty data directory 85b534b23e
  3. sipa commented at 8:48 PM on January 30, 2013: member

    Haven't tested, but looks good. A constant for that timestamp would be nice, though...

  4. Diapolo commented at 9:12 PM on January 30, 2013: none

    @sipa Agreed, don't we have one in main.h for this?

  5. laanwj commented at 10:37 PM on January 30, 2013: member

    No, there is currently no constant for this. Let's leave that for a later improvement (the number returned isn't important at all, could even return 0, the null pointer check is).

  6. laanwj referenced this in commit 4dfae2fd2f on Jan 30, 2013
  7. laanwj merged this on Jan 30, 2013
  8. laanwj closed this on Jan 30, 2013

  9. laudney referenced this in commit 1405dc5bdd on Mar 19, 2014
  10. DrahtBot locked this on Sep 8, 2021

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-04-19 15:15 UTC

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