I have bitcoind running (0.18) in my ubuntu machine and it keeps shutting down due after getting this error:
ERROR: ReadRawBlockFromDisk: Block magic mismatch for CDiskBlockPos(nFile=0, nPos=68821043): 00040000 versus expected f9beb4d9
I restart it and it goes for a couple of hours and then the same error is encountered and it shuts down. How can I fix this?
You have a corrupted block file. You will need to delete that file and all higher number files and then redownload the entire blockchain.
The block file that is corrupted is the 0th file, blk0000.dat. Since this is the first block file that Bitcoin Core creates, the easiest thing for you to do is to just delete the entire
chainstate folders in your Bitcoin Core datadir. Then start Bitcoin Core. It will redownload the entire Bitcoin blockchain.
Answered by Andrew Chow on November 8, 2021
1 Asked on November 29, 2020 by libertarian-monarchist-bot
1 Asked on November 18, 2020 by austinfoss
3 Asked on November 8, 2020 by mirsab-jastram
2 Asked on September 22, 2020 by dujon-w
1 Asked on September 3, 2020 by adam-mitchell
1 Asked on August 29, 2020 by nicklessguy
1 Asked on August 22, 2020 by isaac-chen
Get help from others!