Bitcoin Forum
April 25, 2024, 10:20:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Recovery after hard drive failure  (Read 10719 times)
Dynotor (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


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.

1714040431
Hero Member
*
Offline Offline

Posts: 1714040431

View Profile Personal Message (Offline)

Ignore
1714040431
Reply with quote  #2

1714040431
Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714040431
Hero Member
*
Offline Offline

Posts: 1714040431

View Profile Personal Message (Offline)

Ignore
1714040431
Reply with quote  #2

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

Activity: 132
Merit: 101



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?

Ignore this: 734d417914faa443d74e8205f639dfb0f79fdc44988ecae44db31e5636525afe

Caffeinism -- a toxic condition caused by excessive ingestion of coffee and other caffeine-containing beverage.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5180
Merit: 12884


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

This should be fixed in SVN.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Dynotor (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


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

Thanks!  Glad to hear it's fixed in SVN.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!