0

I read this article blockchaing stored and now I am bit confused. In this article it is described, that the transaction needs 15 seconds to propagate to the whole blockchain network. I know that the new transaction block contains the hash of the previous block. So my question is, if anyone in this 15 seconds create another transaction, how the systems doesn't crash?

To make my question a little bit more clear, I make one example. Let's say the hash of the previous block was "11b83f1dbb421b7539f755". If I make a transaction (Transaction A) for about 1 BTC and 1 second after me someone other makes new a transaction (Transaction B), which transaction becomes the previous hash "11b83f1dbb421b7539f755", because it needs 15 seconds till every node knows the new chain? So after one second not every node, knows about the Transaction A.

Thank you very much in advance!

PS: English is not my mother language :)

1 Answer 1

1

Let's say the hash of the previous block was "11b83f1dbb421b7539f755". If I make a transaction (Transaction A) for about 1 BTC and 1 second after me someone other makes new a transaction (Transaction B), which transaction becomes the previous hash "11b83f1dbb421b7539f755", because it needs 15 seconds till every node knows the new chain?

Not quite.

When you submit a transaction to the network, the network's nodes will check to see if it is valid. If it is, then the nodes will each store the transaction in their local 'mempool' of unconfirmed transactions. Note that a transaction does not reference a previous block, but it will reference some valid unspent transaction outputs (UTXOs) to consume as inputs (which means, it will specify which coins it is spending). It is possible for different nodes to have different mempools, and a node can even elect to not keep a mempool at all.

Miners will select transactions from their local mempool, and attempt to mine blocks which include those transactions. Once a miner finds a valid block with a certain transaction included in it, that transaction is said to be 'confirmed'. Note that a valid block must reference the previous block's hash.

If two transactions consume the same UTXOs, then only one of them can possible be validly included in the blockchain record.

Likewise, if two blocks reference the same previous block hash, then only one of them will eventually become a part of the blockchain record (whichever one is extended first).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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