Bitcoin Forum
October 01, 2016, 10:23:09 AM *
News: Latest stable version of Bitcoin Core: 0.13.0 (New!) [Torrent]. Make sure you verify it.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Recovery after hard drive failure  (Read 1955 times)
Dynotor
Newbie
*
Offline Offline

Activity: 17


View Profile
May 23, 2010, 04:57:35 AM
 #1

OK, so I've been doing a little testing with double spending, and while I'm prevented from spending the same coins twice, I do see a potential problem: Lack of feedback to the second spender.  The second transaction never gets into a block, but the second spender doesn't seem in my testing to see any transactions that conflict with his view of his personal transaction history, even if they have made it into many blocks.  This could cause problems even if no fraud was being attempted: In the case of a hard drive failure, and a restore from backup.

Let's say I have 5000 bitcoins, and I make a backup of my bitcoin data directory.  Then I spend 2000 of them, and before I back my directory up again, my hard drive fails.  I restore from my previous backup, and expect that when I get the new blocks, my transactions for spending the 2000 will be in them.  The problem is, my client seems to ignore those transactions, and even after my client catches up I still think I have 5000 bit coins.   

I'm not sure that the right thing to do is in this case is to always accept the transactions, but it seems we should at least notify the user that something seems wrong if we see a conflicting transaction that's made it into a significantly long chain.  I think the user should also be able to choose to accept the transactions to prevent attempting to double-spend already spent coins in the above scenario.

1475317389
Hero Member
*
Offline Offline

Posts: 1475317389

View Profile Personal Message (Offline)

Ignore
1475317389
Reply with quote  #2

1475317389
Report to moderator
1475317389
Hero Member
*
Offline Offline

Posts: 1475317389

View Profile Personal Message (Offline)

Ignore
1475317389
Reply with quote  #2

1475317389
Report to moderator
1475317389
Hero Member
*
Offline Offline

Posts: 1475317389

View Profile Personal Message (Offline)

Ignore
1475317389
Reply with quote  #2

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

Posts: 1475317389

View Profile Personal Message (Offline)

Ignore
1475317389
Reply with quote  #2

1475317389
Report to moderator
1475317389
Hero Member
*
Offline Offline

Posts: 1475317389

View Profile Personal Message (Offline)

Ignore
1475317389
Reply with quote  #2

1475317389
Report to moderator
1475317389
Hero Member
*
Offline Offline

Posts: 1475317389

View Profile Personal Message (Offline)

Ignore
1475317389
Reply with quote  #2

1475317389
Report to moderator
Xunie
Full Member
***
Offline Offline

Activity: 132



View Profile
May 23, 2010, 12:49:21 PM
 #2

Bitcoin works with asynchronous key encryption, right? (If I'm not, please correct me!)

Can't we just put a simple button in the GUI that checks how much money we have by checking all the blocks if they belong to the user, or not?

Or am I talking gibberish and don't I fully understand Bitcoin now?

Thank me for this post here: 1PyNKEyqtDFB4HBG8ueDVxdPZfgwC6gAqw
Caffeinism -- a toxic condition caused by excessive ingestion of coffee and other caffeine-containing beverage.
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2422


View Profile
May 23, 2010, 01:20:20 PM
 #3

This should be fixed in SVN.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Dynotor
Newbie
*
Offline Offline

Activity: 17


View Profile
May 24, 2010, 01:45:28 AM
 #4

Thanks!  Glad to hear it's fixed in SVN.
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!