count vote transaction units to block cost

This commit is contained in:
Tao Zhu
2022-01-11 16:35:42 -06:00
committed by Tao Zhu
parent 40ef11ec86
commit 5655ea0061

View File

@@ -1147,11 +1147,7 @@ impl BankingStage {
.filter_map(|(tx, tx_index)| {
// put transaction into retry queue if it wouldn't fit
// into current bank
let is_vote = &packet_batch.packets[tx_index].meta.is_simple_vote_tx;
// excluding vote TX from cost_model, for now
if !is_vote
&& read_cost_tracker
if read_cost_tracker
.would_transaction_fit(
&tx,
&cost_model