Bitcoin Forum
April 17, 2014, 11:05:49 AM *
News: ♦♦ A bug in OpenSSL, used by Bitcoin-Qt/Bitcoin Core, could allow your bitcoins to be stolen. Immediately updating Bitcoin Core to 0.9.1 is required in some cases, especially if you're using 0.9.0. Download. More info.
The same bug also affected the forum. Changing your forum password is recommended.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Lost all my Bitcoins?  (Read 2879 times)
ksd5
Jr. Member
*
Offline Offline

Activity: 48


View Profile

Ignore
July 14, 2010, 10:35:17 PM
 #1

I wanted to test Bitcoin's double-spending protection, so I copied the wallet.dat file to another folder. I had 1.21 BTC as my balance, and I donated 0.01 BTC, and then exited the program. I then moved the copy of the wallet.dat file back to Bitcoin's AppData folder, and started Bitcoin.

When it started, it showed 1.21 BTC as my balance, but a second later, it became 0.00.

Is this there on purpose to punish people who attempt double-spending, or is it a bug?

(All my transactions are present in the window. My balance is at 0.00 though.)
1397732749
Hero Member
*
Offline Offline

Posts: 1397732749

View Profile Personal Message (Offline)

Ignore
1397732749
Reply with quote  #2

1397732749
Report to moderator
1397732749
Hero Member
*
Offline Offline

Posts: 1397732749

View Profile Personal Message (Offline)

Ignore
1397732749
Reply with quote  #2

1397732749
Report to moderator
1397732749
Hero Member
*
Offline Offline

Posts: 1397732749

View Profile Personal Message (Offline)

Ignore
1397732749
Reply with quote  #2

1397732749
Report to moderator
GAWMiners.com - FREE Hosting & Electricity for 1 Year!
Exclusive Offer Code: GAWHOST1
Mining Made Easy
For Everyone

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1397732749
Hero Member
*
Offline Offline

Posts: 1397732749

View Profile Personal Message (Offline)

Ignore
1397732749
Reply with quote  #2

1397732749
Report to moderator
1397732749
Hero Member
*
Offline Offline

Posts: 1397732749

View Profile Personal Message (Offline)

Ignore
1397732749
Reply with quote  #2

1397732749
Report to moderator
SmokeTooMuch
Hero Member
*****
Offline Offline

Activity: 784


View Profile

Ignore
July 14, 2010, 10:42:59 PM
 #2

hmm that indeed seems odd.
if you still got the other version of your wallet.dat try to use that.

You like what I'm doing? Why don't you send me a coin: 17Pj8jpUgY6qTaKgiopL5U48zxU4rTrkuB
Bitcoin on Reddit: https://pay.reddit.com/r/Bitcoin
theymos
Administrator
Hero Member
*
Offline Offline

Activity: 1526


View Profile
July 14, 2010, 10:46:51 PM
 #3

The 1.21 BC was in a single "chunk". When you sent 0.01, you made a transaction with one "in" (the "chunk") and two "outs": one sent 0.01 to whoever you sent that to, and the other one sent 1.20 back to you as "change". This second "out" was sent to a brand new address that you just generated. Since your old wallet.dat doesn't have the keys to this new address, you don't see it.

ksd5
Jr. Member
*
Offline Offline

Activity: 48


View Profile

Ignore
July 14, 2010, 11:04:52 PM
 #4

Ah, okay. So I guess that my 1.20 BTC is lost forever, unless I try to recover the file with a data recovery tool.
SmokeTooMuch
Hero Member
*****
Offline Offline

Activity: 784


View Profile

Ignore
July 14, 2010, 11:05:54 PM
 #5

If you want to do that you should do it as soon as possible because every new write-access could overwrite the sector where that file is still stored.

You like what I'm doing? Why don't you send me a coin: 17Pj8jpUgY6qTaKgiopL5U48zxU4rTrkuB
Bitcoin on Reddit: https://pay.reddit.com/r/Bitcoin
jimbobway
Hero Member
*****
Offline Offline

Activity: 1269



View Profile

Ignore
July 14, 2010, 11:49:49 PM
 #6

I wanted to test Bitcoin's double-spending protection, so I copied the wallet.dat file to another folder. I had 1.21 BTC as my balance, and I donated 0.01 BTC, and then exited the program. I then moved the copy of the wallet.dat file back to Bitcoin's AppData folder, and started Bitcoin.

When you copied the copy of wallet.dat back to the Bitcoin AppData folder, did you overwrite the existing wallet.dat?

This is certainly REALLY SCARY since that's how people do backups.  What is the procedure to do backup and restoring backups???
ksd5
Jr. Member
*
Offline Offline

Activity: 48


View Profile

Ignore
July 15, 2010, 12:01:40 AM
 #7

Yeah, I just overwrote it. I'm not gonna bother trying to recover the file. It was only 1.20 BTC and I'm not gonna sweat the small stuff.

The wallet.dat now has transactions that don't reflect the current balance, so I'm just going to delete it.

Luckily, I only had 1.20 BTC to lose, but backing up the wallet should be definitely integrated into the client.

While they're doing that, they should build in a way to "bank" your coins into encrypted files.



Well, I guess the BTCs value just got a tiny bit higher.  Tongue  Grin
mizerydearia
Hero Member
*****
Offline Offline

Activity: 574



View Profile

Ignore
July 15, 2010, 03:45:26 AM
 #8

A tiny bit now, but in a couple years?  Here's a snippet from my IRC bot.
According to http://www.census.gov/main/www/popclock.html the world population is 6,855,970,029. If everyone had the same amount of bitcoins, everyone would have 0.00306302 bitcoins.  If 0.00000001 bitcoins were equivalent to US$0.01, then everyone would have equivalent of US$3,063.02389176 and the value of all bitcoins would be equivalent of US$21,000,000,000,000.00.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!