Bitcoin Forum
May 02, 2024, 08:07:12 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin copying wallet.dat allows sending coins twice  (Read 4026 times)
TheoryOfBitcoin (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
September 30, 2013, 01:06:35 AM
 #1

I did a small experiment, I copied the wallet.dat and put it on another offline computer. I was able to send the same bitcoins twice! How can this be fixed?
1714637232
Hero Member
*
Offline Offline

Posts: 1714637232

View Profile Personal Message (Offline)

Ignore
1714637232
Reply with quote  #2

1714637232
Report to moderator
1714637232
Hero Member
*
Offline Offline

Posts: 1714637232

View Profile Personal Message (Offline)

Ignore
1714637232
Reply with quote  #2

1714637232
Report to moderator
1714637232
Hero Member
*
Offline Offline

Posts: 1714637232

View Profile Personal Message (Offline)

Ignore
1714637232
Reply with quote  #2

1714637232
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714637232
Hero Member
*
Offline Offline

Posts: 1714637232

View Profile Personal Message (Offline)

Ignore
1714637232
Reply with quote  #2

1714637232
Report to moderator
IncreaseMyT
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile WWW
September 30, 2013, 01:11:42 AM
 #2

you could send them but was the transaction confirmed?
spooderman
Legendary
*
Offline Offline

Activity: 1638
Merit: 1022


View Profile WWW
September 30, 2013, 01:14:44 AM
 #3

Once one is confirmed, the other can't be if I'm not mistaken. Is it decided by which client is more updated?

Society doesn't scale.
franky1
Legendary
*
Offline Offline

Activity: 4214
Merit: 4458



View Profile
September 30, 2013, 02:19:00 AM
 #4

phone apps can be produced that generate a private key using the IMEI number of a phone. these app's could become the more secure apps that are trusted to send funds without confirms as the private keys wont work unless used on that specific phone. thus if it is confirmed on the phone then sending it somewhere like starbucks, they can instantly see that it cant be double spent.

I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
Valerian77
Sr. Member
****
Offline Offline

Activity: 437
Merit: 255


View Profile
September 30, 2013, 02:39:53 AM
 #5

private key using the IMEI number of a phone. these app's could become the more secure apps

Not sure - I think it is possible to change the IMEI on some phones. That is the way some stolen phones get a new identification.
giszmo
Legendary
*
Offline Offline

Activity: 1862
Merit: 1105


WalletScrutiny.com


View Profile WWW
September 30, 2013, 03:27:20 AM
 #6

Ok, guys, IMEI? please!

OP, which client are you talking about?
Generally sending coins twice should be resolved automatically, so as soon as both clients see which transaction went through, the one that violates this, will be "forgotten". No issue here. Just bring you computer online.

ɃɃWalletScrutiny.comIs your wallet secure?(Methodology)
WalletScrutiny checks if wallet builds are reproducible, a precondition for code audits to be of value.
ɃɃ
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1093


View Profile
September 30, 2013, 03:30:00 AM
 #7

I did a small experiment, I copied the wallet.dat and put it on another offline computer. I was able to send the same bitcoins twice! How can this be fixed?

You can send as many times as you want. Only one of them (at most) would be confirmed.

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
niko
Hero Member
*****
Offline Offline

Activity: 756
Merit: 501


There is more to Bitcoin than bitcoins.


View Profile
September 30, 2013, 04:11:32 AM
 #8

I did a small experiment, I copied the wallet.dat and put it on another offline computer. I was able to send the same bitcoins twice! How can this be fixed?
It can be fixed by you coming back here and providing an update. Specifically, you could write an essay titled "Why I am not rich yet?".

To help you get started, here is a hint: you were not able to send the same bitcoins twice, at least not any more than you would be able to send them twice by yelling "HERE, I SENT 'EM!!" from your balcony twice. Bitcoin transactions are verified, confirmed, timestamped, and entered into the ledger collectively by a p2p network.

They're there, in their room.
Your mining rig is on fire, yet you're very calm.
cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
September 30, 2013, 05:14:27 AM
 #9

TOB, not you again.
lassdas
Legendary
*
Offline Offline

Activity: 3649
Merit: 1412


View Profile
September 30, 2013, 05:17:47 AM
 #10

.. at least not any more than you would be able to send them twice by yelling "HERE, I SENT 'EM!!" from your balcony twice.
This one made me laugh.  Cheesy
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
September 30, 2013, 06:17:57 AM
Last edit: September 30, 2013, 09:14:59 PM by Stephen Gornick
 #11

How can this be fixed?

Well, you now have two wallet.dat files which are out of sync.  Bitcoin-Qt/bitcoind wasn't designed to work this way (running two copies of the Client with the same wallet.dat).  As a result, the two wallet.dat files are now out of sync.

In short, don't do this.   It doesn't affect the blockchain, but it will give you grief and multiple copies of a wallet getting out of sync can potentially cause you to end up with financial loss.

To resolve this ... you will have one Client in which the transaction confirms.  In the other instance you will have a transaction that won't confirm (presuming both are attempting to spend the same funds).  

So, if the balance on the one with the confirmation is correct, then simply discontinue use of the other instance -- the one with the transaction that will never confirm.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


bitcoin44me
Full Member
***
Offline Offline

Activity: 252
Merit: 100


MARKETPLACE FOR PAID ADVICE LIVE BROADCASTS


View Profile
September 30, 2013, 10:55:24 AM
 #12

You tried double spending.
Be careful because the network might mark you as a scammer, and you will have troubles (not sure)

greyhawk
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1009


View Profile
September 30, 2013, 10:57:26 AM
 #13

.. at least not any more than you would be able to send them twice by yelling "HERE, I SENT 'EM!!" from your balcony twice.
This one made me laugh.  Cheesy

niko has a run of great posts lately.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
September 30, 2013, 01:01:29 PM
 #14

Don't put too much energy into answering him, TheoryOfBitcoin is likely to be a troll...

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
b!z
Legendary
*
Offline Offline

Activity: 1582
Merit: 1010



View Profile
September 30, 2013, 01:06:47 PM
 #15

You tried double spending.
Be careful because the network might mark you as a scammer, and you will have troubles (not sure)

This is untrue.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4613



View Profile
September 30, 2013, 02:07:53 PM
 #16

Don't put too much energy into answering him, TheoryOfBitcoin is likely to be a troll...

Agreed.  I'm surprised his ignore button isn't yellow yet.  I suspect it will be before long.
BurtW
Legendary
*
Offline Offline

Activity: 2646
Merit: 1131

All paid signature campaigns should be banned.


View Profile WWW
September 30, 2013, 02:51:08 PM
Last edit: September 30, 2013, 03:03:49 PM by BurtW
 #17

Looking at his other 13 posts he is just not this ignorant, so TheoryollOfBitcoin.

Our family was terrorized by Homeland Security.  Read all about it here:  http://www.jmwagner.com/ and http://www.burtw.com/  Any donations to help us recover from the $300,000 in legal fees and forced donations to the Federal Asset Forfeiture slush fund are greatly appreciated!
IncreaseMyT
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile WWW
September 30, 2013, 06:20:55 PM
 #18

Don't put too much energy into answering him, TheoryOfBitcoin is likely to be a troll...

I figured he was trolling if a newb like myself new it would only confirm once.

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!