Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Re: Bitcoin Core v27.0 Error reading from database
by
nc50lc
on 19/04/2024, 04:55:00 UTC
⭐ Merited by vapourminer (2)
How do I do the reindex-chainstate files?
First, close Bitcoin Core.
Find Bitcoin Core's installation folder, find "Bitcoin-qt" if you're using the GUI. (if you've used the installer, it defaults to "C:\Program Files\Bitcoin")
While inside that folder, click Windows Explorer's "File" menu and select "Open Windows PowerShell" that will select the current folder as your working directory.
The working directory should be displayed in PowerShell, e.g.: PS C:\Program Files\Bitcoin>

In PowerShell, type:
Code:
./bitcoin-qt --reindex-chainstate
That'll start Bitcoin Core and opt it to rebuild your chainstate.
Take note that it will take quite some time but it will not re-download blocks that you already have, unless your blockchain is "pruned".


If you decided to follow the instructions above, you MUST remove that entry in your bitcoin.conf after your node is done with it.
Or else, it will reindex-chainstate every time you restart the client.

Also, the default data directory is in the "Roaming" appdata directory instead of "local".
So it should be in: C:\Users\<YOUR_USERNAME>\AppData\Roaming\Bitcoin
Shortcut: %appdata%/bitcoin