Processing two successive transactions?

2

1

Is it possible to process (stored in the same block) two successive transactions simultaneously?

'Two successive transactions' means that the second transaction's input is the first transaction's output.

Thanks!

forfun

Posted 2017-09-06T06:07:40.643

Reputation: 123

Answers

1

Yes, multiple transactions building on each others' outputs can be in the same block. However, they have to be in the correct order inside of the block.

The order of transactions in a block can be freely chosen except for two rules: the coinbase transaction must be the first transaction, and parents must be before children. Note that the order of transactions in blocks is explicitly specified by the positions of the leaves of the Merkle tree.

Murch

Posted 2017-09-06T06:07:40.643

Reputation: 41 609

1Thanks for your reply. What is 'order'? The order in the merkle tree?forfun 2017-09-06T06:23:17.747

The transactions are in a specific order (which corresponds to the positions of the leaves of the Merkle tree). Mostly the order is up to the miner, but Coinbase transaction must be first tx, and parents must be before children.Murch 2017-09-06T06:29:09.887