Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: brudog on June 03, 2016, 10:27:49 PM



Title: Bitcoin Core added already spent bitcoins on replacement
Post by: brudog on June 03, 2016, 10:27:49 PM

 A week ago I had a power outage. My wallet had to reload the entire blockchain. This has happened before and I knew it would be corrupted. I loaded the blockchain and appeared to be good for a day, but the next day it stopped with "fatal error". I deleted all bitcoin core files and re-installed it, allowed it to load chain then added my saved wallet.dat file from a couple weeks ago. It worked fine, but it only loaded transactions up to the date of the back-up file. I have spent some bitcoin since and now my total is more than I should have, granted the difference is only less than one bitcoin I'm ahead, but... this shouldn't happen right? I sent myself a few hundredths to see if it would correct itself, it didn't add the missing days either, just marked it like I had no transactions for 17 days. Will this affect the network?
  Miffed


Title: Re: Bitcoin Core added already spent bitcoins on replacement
Post by: achow101 on June 03, 2016, 11:06:39 PM
A week ago I had a power outage. My wallet had to reload the entire blockchain. This has happened before and I knew it would be corrupted.
You should update the software. The latest software doesn't have this issue anymore.

I loaded the blockchain and appeared to be good for a day, but the next day it stopped with "fatal error". I deleted all bitcoin core files and re-installed it, allowed it to load chain then added my saved wallet.dat file from a couple weeks ago. It worked fine, but it only loaded transactions up to the date of the back-up file. I have spent some bitcoin since and now my total is more than I should have, granted the difference is only less than one bitcoin I'm ahead, but... this shouldn't happen right? I sent myself a few hundredths to see if it would correct itself, it didn't add the missing days either, just marked it like I had no transactions for 17 days. Will this affect the network?
  Miffed
You will have to rescan the blockchain. The software does not rescan the blockchain when it reindexs or resyncs, it simply isn't something that should normally happen. Start Bitcoin Core with the -rescan option and it should fix your problems.


Title: Re: Bitcoin Core added already spent bitcoins on replacement
Post by: brudog on June 03, 2016, 11:50:25 PM

 I have Bitcoin Core 12.1, re-installed it and let it load the blockchain. It was synced and 0.0 bitcoins until I added my backup file. I will try to rescan, Thanks