Reconstruct coins/ database when missing #2062

pull sipa wants to merge 1 commits into bitcoin:master from sipa:nocoins changing 2 files +11 −14
  1. sipa commented at 8:55 PM on December 2, 2012: member

    When the blocks/ and blktree/ databases exist, but the coins/ database doesn't, reconstruct it automatically at startup.

    More generally, if the block database has more recent blocks than the coins database, they are automatically constructed at startup. This already worked, but not when the coins database was missing entirely. This pullreq should fix that.

    This provides a very nice way for benchmarking the block validation logic, as this reconstruction happens before the actual node is started, and doesn't require writing to block files.

  2. BitcoinPullTester commented at 9:37 PM on December 2, 2012: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/484dee31ba1c87aada77b306de2ea450d153069a for binaries and test log.

  3. Reconstruct coins/ from scratch when missing. 89b7019be8
  4. BitcoinPullTester commented at 2:58 AM on December 7, 2012: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/89b7019be884962729784ab326c46be88ed4784c for binaries and test log.

  5. gmaxwell commented at 11:44 AM on December 7, 2012: contributor

    I've tested this about a zillion times now. ACK.

  6. gavinandresen referenced this in commit dbd5bb8039 on Dec 12, 2012
  7. gavinandresen merged this on Dec 12, 2012
  8. gavinandresen closed this on Dec 12, 2012

  9. sipa deleted the branch on May 3, 2013
  10. laudney referenced this in commit 27761e5501 on Mar 19, 2014
  11. 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 09:16 UTC

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