A merkle root in a block header is a solution to commit all transactions in that block. Nonetheless, because it doesn’t cowl transaction witness knowledge, one other dedication must be made in a coinbase transaction. The one distinction is now as an alternative of a TXID we create a WTXID that additionaly contains the marker, tag and witness knowledge. For non-SegWit transactions, it’s needed to make use of the previous serialization format so their TXID is the same as WTXID. My query is, are these legacy (non-SegWit) transactions, i.e. their TXID (which is the same as WTXID) additionally a part of making a merkle tree for committing in a coinbase transaction or we simply bear in mind SegWit transactions?