// SetTxTree analyzes the embedded MsgTx and sets the transaction tree // accordingly. func SetTxTree(tx *dcrutil.Tx) { txType := DetermineTxType(tx.MsgTx()) indicatedTree := wire.TxTreeRegular if txType != TxTypeRegular { indicatedTree = wire.TxTreeStake } tx.SetTree(indicatedTree) }