Transactions tree not list?

0

I try to understand how Bitcoin handles change or the combination of multiple transactions to provide sufficient funds for a given price.

Bitcoin transactions contain an array for the input transactions and an array for the UTXO outputs (vout).

For example: If I'm Frank and I send Charlie 1 BTC with an input transaction which holds 1.2 BTC, does that mean, that my next TX using the 0.2 BTC and Charlies TX using the 1 BTC form two new TX chains?

enter image description here

Or would I just reference the latest TX in the chain of transactions, containing both parts of the 1.2 BTC and sometimes the 0.2 BTC is referenced as VIN element and sometimes the 1.0 BTC?

schlingel

Posted 2017-07-10T04:09:28.803

Reputation: 105

2Can you clarify what you mean by "same list"? What list are you talking about?Andrew Chow 2017-07-10T05:54:49.973

@AndrewChow I mean if there spawns a new chain of TXs, one referencing the 0.2 BTC, one referencing the 1.0 BTC or if both are referenced in the same chain of transactions.schlingel 2017-07-10T07:41:55.540

Possible duplicate of How does change work in a bitcoin transaction?

Murch 2017-07-11T04:10:10.523

Answers

1

In your example, there will be two chains of transactions as different transactions are spending the outputs of one transaction. Because there are two distinct transactions spending from those two outputs, there are now two transaction chains coming from one transaction. However this does not mean that the transaction chains won't converge or meet. Calling it a transaction chain or a tree isn't really accurate. It's actually a directed acyclic graph.

Andrew Chow

Posted 2017-07-10T04:09:28.803

Reputation: 40 910

You're right. Makes sense!schlingel 2017-07-11T03:27:02.657