Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: BitMofo on July 22, 2011, 10:15:31 AM



Title: Losing Block Count When System Crashes
Post by: BitMofo on July 22, 2011, 10:15:31 AM
Hi,

I have noticed a very annoying issue in that if your computer crashes or doesn't power off correctly when bitcoin is still obtaining blocks (Can take hours to catch up...) Then the blkindex.dat file becomes corrupt and you have to remove the count files (blkindex.dat & blk0001.dat) in order to open bitcoin again. At this stage you must go through ALL the blocks again...
Is there anything that can be done to prevent this? Other than not using Windows? Lol...


Title: Re: Losing Block Count When System Crashes
Post by: Furyan on July 22, 2011, 11:46:41 AM
Back up the block database periodically?


Title: Re: Losing Block Count When System Crashes
Post by: error on July 22, 2011, 04:24:44 PM
Don't run old versions of Bitcoin.

Fix whatever is causing your computer to crash.