<p>It's like two people holding on to the same $20 bill and each of them saying, "see, I have 20 dollars!".</p>

<p>Bitcoins can be spent/accessed by anyone that has the private key to unlock them. If two computers have the same private key stored, then they can both access the bitcoins. If one wallet spends the bitcoins, the other wallet will show them as spent as well, just like one person spending the $20 bill means it is gone for the other person.</p>

CC BY-SA 3.0
2015-01-08T23:18:51.707Z
So basically what your saying is it is possible to scam 2 different websites by using the same Bitcoins on both of them, right?
kirill2485
CC BY-SA 3.0
2015-01-09T15:37:02.337Z
Sort of. If both of the websites accept transactions with zero confirmations and they both happen to see the transaction that was sent to them before the transaction (sending the same coins) to the other site, then you possibly could. Most places don't accept zero-conf transactions, though, and you can't exactly control how transactions propagate.
morsecoder
CC BY-SA 3.0
2015-01-07T19:02:37.160Z
2015-01-07T20:43:01.200Z
2015-01-07T20:43:01.200Z
morsecoder
<p>As another analogy, it is like taking your bank statement, showing a $1000 balance, and making a copy of it, and thinking you now have a total of $2000 in two accounts. You don't; you are counting the same money twice.</p>

<p>If both computers' client software is in sync, then if you spend the coins on one computer, the other computer will also show them as spent. If you send coins from one wallet to the other, the destination wallet will show that you sent coins to yourself, and your balance will not increase.</p>

<p>If each wallet does show a total balance of 3 bitcoins, and they correspond to coins in the same addresses, then there should be no way to spend a total of 5 bitcoins. Indeed, there should be no way to get either client to even show that you have 5 bitcoins. It's not clear exactly what you mean when you say that you spent 5 bitcoins; for us to be sure of what happened, you would need to explain in detail exactly what you did.</p>

<p>If you spend coins from both wallets in quick succession, you may be able to create two different transactions that attempt to spend the same coins.  This is called a double spend. However, only one of those transactions will be confirmed, so you can't actually get goods or services for both transactions, unless the other party is foolish enough not to wait for confirmations.</p>

CC BY-SA 3.0
2015-01-07T19:51:57.410Z
2015-01-07T19:51:57.410Z
Nate Eldredge
<p>When you say you spent 5 BTC as a test, do you mean you sent off transactions worth 5 BTC?  You essentially just tried to double spend and the blockchain is going to reject one of those.</p>

CC BY-SA 3.0
2015-01-13T21:27:58.383Z
2015-01-13T21:27:58.383Z
Nick
<p>This occurrence has it's own name and there are lots of resources about this problematic aspect of bitcoins: <a href="https://en.bitcoin.it/wiki/Double-spending" rel="nofollow">https://en.bitcoin.it/wiki/Double-spending</a></p>

<p>The Bitcoin police is on the way to your house right now.</p>

CC BY-SA 3.0
2015-01-08T15:33:02.683Z
http://www.internetpd.com/
Nick ODell
CC BY-SA 3.0
2015-01-08T10:07:14.670Z
2015-01-08T10:07:14.670Z
ASA
<p>I had 3 Bitcoins stored on my PC and I had a backup image of my PC. I restored my PC on another computer from the image and I had 3 Bitcoins on that computer also. I spent 5 Bitcoins as a test, and it worked. What just happened?</p>

CC BY-SA 3.0
2015-01-07T19:46:28.740Z
Can you be more precise about what you mean by "it worked"?
Greg Hewgill
CC BY-SA 3.0
2015-01-07T20:38:41.853Z
You just made a double spend attack, but the transactions will be reverted as soon the network detect it. That's why is recommended wait for one confirmation at least.
Felipe
CC BY-SA 3.0
2015-01-08T00:25:31.170Z
Can you give us the address(es) where you sent the bitcoin?
Mark S.
CC BY-SA 3.0
2015-01-08T00:26:49.917Z
Wait, so it's that straightforward? I always thought/assumed it was pretty technically difficult to send double spent coins and/or malleable blocks? ie using raw Txns sent manually.
Wizard Of Ozzie
CC BY-SA 3.0
2015-01-08T04:52:10.107Z
You won't be able to spend the bitcoins from the second source.  Each transaction is verified by a plethora of other entities.  So it is widely known that the first 3 bitcoins were spent from one place.  The system will not let you spend them again from another place.
levininja
CC BY-SA 3.0
2015-01-08T10:18:45.523Z
@levininja: That sounds more like an answer than a comment. :)
Murch
CC BY-SA 3.0
2015-01-08T23:20:37.143Z
@Mark S. Bitpay and Coinbase
kirill2485
CC BY-SA 3.0
2015-01-08T23:22:52.610Z
Can you send us the bitcoin addresses so we can look at them on a site like blockchain.info to determine what the network actually did with the transactions
Mark S.
CC BY-SA 3.0
2016-09-21T19:45:41.217Z
transaction hashes would be useful here
Albert S
<security>
Did I just create counterfeit bitcoins?
kirill2485
# Did I just create counterfeit bitcoins?

(Asked by: username_0 on 2015-01-07)

I had 3 Bitcoins stored on my PC and I had a backup image of my PC. I restored my PC on another computer from the image and I had 3 Bitcoins on that computer also. I spent 5 Bitcoins as a test, and it worked. What just happened?

**Tags:** security

> **Comments:**
> **username_1**: Can you be more precise about what you mean by "it worked"?  
> **username_2**: You just made a double spend attack, but the transactions will be reverted as soon the network detect it. That's why is recommended wait for one confirmation at least.  
> **username_3**: Can you give us the address(es) where you sent the bitcoin?  
> **username_4**: Wait, so it's that straightforward? I always thought/assumed it was pretty technically difficult to send double spent coins and/or malleable blocks? ie using raw Txns sent manually.  
> **username_5**: You won't be able to spend the bitcoins from the second source.  Each transaction is verified by a plethora of other entities.  So it is widely known that the first 3 bitcoins were spent from one place.  The system will not let you spend them again from another place.  
> **username_6**: @username_5: That sounds more like an answer than a comment. :)  
> **username_0**: @username_3. Bitpay and Coinbase  
> **username_3**: Can you send us the bitcoin addresses so we can look at them on a site like blockchain.info to determine what the network actually did with the transactions  
> **username_7**: transaction hashes would be useful here  

---

## 4 answers

### Answer by username_8 on 2015-01-07. Score: 10

It's like two people holding on to the same $20 bill and each of them saying, "see, I have 20 dollars!".

Bitcoins can be spent/accessed by anyone that has the private key to unlock them. If two computers have the same private key stored, then they can both access the bitcoins. If one wallet spends the bitcoins, the other wallet will show them as spent as well, just like one person spending the $20 bill means it is gone for the other person.

> **Comments:**
> **username_0**: So basically what your saying is it is possible to scam 2 different websites by using the same Bitcoins on both of them, right?  
> **username_8**: Sort of. If both of the websites accept transactions with zero confirmations and they both happen to see the transaction that was sent to them before the transaction (sending the same coins) to the other site, then you possibly could. Most places don't accept zero-conf transactions, though, and you can't exactly control how transactions propagate.  

---

### Answer by username_9 on 2015-01-07. Score: 7

As another analogy, it is like taking your bank statement, showing a $1000 balance, and making a copy of it, and thinking you now have a total of $2000 in two accounts. You don't; you are counting the same money twice.

If both computers' client software is in sync, then if you spend the coins on one computer, the other computer will also show them as spent. If you send coins from one wallet to the other, the destination wallet will show that you sent coins to yourself, and your balance will not increase.

If each wallet does show a total balance of 3 bitcoins, and they correspond to coins in the same addresses, then there should be no way to spend a total of 5 bitcoins. Indeed, there should be no way to get either client to even show that you have 5 bitcoins. It's not clear exactly what you mean when you say that you spent 5 bitcoins; for us to be sure of what happened, you would need to explain in detail exactly what you did.

If you spend coins from both wallets in quick succession, you may be able to create two different transactions that attempt to spend the same coins. This is called a double spend. However, only one of those transactions will be confirmed, so you can't actually get goods or services for both transactions, unless the other party is foolish enough not to wait for confirmations.


---

### Answer by username_10 on 2015-01-13. Score: 1

When you say you spent 5 BTC as a test, do you mean you sent off transactions worth 5 BTC? You essentially just tried to double spend and the blockchain is going to reject one of those.


---

### Answer by username_11 on 2015-01-08. Score: 1

This occurrence has it's own name and there are lots of resources about this problematic aspect of bitcoins: <https://en.bitcoin.it/wiki/Double-spending>

The Bitcoin police is on the way to your house right now.

> **Comments:**
> **username_12**: http://www.internetpd.com/  

---

