The protocol specification doesn't seem to address this.

up vote 12 down vote accepted
  1. Transactions are first transmitted to all the nodes in the p2p network. At this point they are "unconfirmed".
  2. At some point a miner includes the transaction in a block. The transaction now has 1 confirmation.
  3. Miners continue to find blocks and the next block builds on the block that contains the transaction. The transaction now has 2 confirmations (the original block + 1 more after it in the block chain).
  4. Miners continue to find blocks, the next block that extends the chain makes the 3rd confirmation and the one after that makes the 4th, etc.

Clients determine the number of confirmations by counting the number of blocks in the block chain since the block that contains the transaction:

"Height of current longest chain" - "Height of chain for the block containing the transaction" + 1

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.