<p>6 <a href="https://en.bitcoin.it/wiki/Blocks" rel="nofollow">blocks</a>, not 6 clients. The chances of catching up to the block with the transactions that is buried 6 blocks deep is slim. Granted of course that the dishonest party has not a very significant part (say less than 15% or so) of the hashing power. These changes can be calculated using Poisson distribution, as done in <a href="https://bitcoin.org/bitcoin.pdf" rel="nofollow">Satoshi's original paper</a> (last pages).</p>

CC BY-SA 3.0
2014-05-18T12:30:12.787Z
2014-05-18T17:09:20.987Z
2014-05-18T17:09:20.987Z
Jori
<p>Say Belly, Alice and Teddy are Bitcoin clients.</p>

<ol>
<li>Belly makes a transaction to send 1 btc to Alice.</li>
<li>He broadcasts this transaction to the P2P network.</li>
<li>Teddy calculates a valid hashcode and add Belly's transaction into his block chain.</li>
</ol>

<p>Then here is the question. How does Belly know his transaction has been accepted? Even he knows Teddy has added it into his block chain, this block chain can be rejected later if there is a longer block chain on the network, right? And what if Teddy is malicious and lying?</p>

<p>I heard you need to wait until 6 clients accept your transaction. I'm not sure what this exactly means. And why 6, not 5 or 7? </p>

CC BY-SA 3.0
2014-05-18T12:23:12.387Z
@Jori you should make that an answer
Tim S.
CC BY-SA 3.0
2014-05-19T12:45:30.043Z
This question seems to be based on misconceptions of how the blockchain works: The asker seems to think that transactions are validated by themselves and that everyone is running their own Blockchain. Perhaps reading these questions will help resolve the underlying question: [What exactly is Mining?](http://bitcoin.stackexchange.com/q/148/5406), [Can someone explain how the Bitcoin Blockchain works?](http://bitcoin.stackexchange.com/q/12427/5406)
Murch
<blockchain>
How does a Bitcoin client know its transaction has been accepted by the whole network?
Lai Yu-Hsuan
# How does a Bitcoin client know its transaction has been accepted by the whole network?

(Asked by: username_0 on 2014-05-18)

Say Belly, Alice and Teddy are Bitcoin clients.

1. Belly makes a transaction to send 1 btc to Alice.
2. He broadcasts this transaction to the P2P network.
3. Teddy calculates a valid hashcode and add Belly's transaction into his block chain.

Then here is the question. How does Belly know his transaction has been accepted? Even he knows Teddy has added it into his block chain, this block chain can be rejected later if there is a longer block chain on the network, right? And what if Teddy is malicious and lying?

I heard you need to wait until 6 clients accept your transaction. I'm not sure what this exactly means. And why 6, not 5 or 7?

**Tags:** blockchain

> **Comments:**
> **username_1**: @username_3 you should make that an answer  
> **username_2**: This question seems to be based on misconceptions of how the blockchain works: The asker seems to think that transactions are validated by themselves and that everyone is running their own Blockchain. Perhaps reading these questions will help resolve the underlying question: [What exactly is Mining?](http://bitcoin.stackexchange.com/q/148/5406), [Can someone explain how the Bitcoin Blockchain works?](http://bitcoin.stackexchange.com/q/12427/5406)  

---

## 1 answers

### Answer by username_3 on 2014-05-18. Score: 4

6 [blocks](https://en.bitcoin.it/wiki/Blocks), not 6 clients. The chances of catching up to the block with the transactions that is buried 6 blocks deep is slim. Granted of course that the dishonest party has not a very significant part (say less than 15% or so) of the hashing power. These changes can be calculated using Poisson distribution, as done in [Satoshi's original paper](https://bitcoin.org/bitcoin.pdf) (last pages).


---

