Skip to content

Conversation

@sipa
Copy link
Member

@sipa sipa commented Dec 2, 2012

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.

@BitcoinPullTester
Copy link

@BitcoinPullTester
Copy link

@gmaxwell
Copy link
Contributor

gmaxwell commented Dec 7, 2012

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

gavinandresen added a commit that referenced this pull request Dec 12, 2012
Reconstruct coins/ database when missing
@gavinandresen gavinandresen merged commit dbd5bb8 into bitcoin:master Dec 12, 2012
@sipa sipa deleted the nocoins branch May 3, 2013 18:53
laudney pushed a commit to reddcoin-project/reddcoin-3.10 that referenced this pull request Mar 19, 2014
Reconstruct coins/ database when missing
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants