How does the random forest vote work?
Always separate training a model from using the model to make predictions.  During training, bootstrap samples are drawn and trees built using those resamples.  Voting only occurs when predicting, and all of the trees are used, whether your datapoint is from the original training set or not.
There is a bit of a caveat here though, because we may be interested in the &quot;out-of-bag&quot; scores of the random forest, in which case we want to let the trees that didn't see a given training datapoint vote on the outcome for that datapoint.  In that case, we need to keep track of which bootstrapped samples contain which datapoints, and then predict for each using the appropriate subset of trees.