How does a Bitcoin client know its transaction has been accepted by the whole network?

0

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?

Lai Yu-Hsuan

Posted 2014-05-18T09:08:27.960

Reputation: 117

@Jori you should make that an answerTim S. 2014-05-18T12:23:12.387

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?, Can someone explain how the Bitcoin Blockchain works?

Murch 2014-05-19T12:45:30.043

Answers

4

6 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 (last pages).

Jori

Posted 2014-05-18T09:08:27.960

Reputation: 1 522