From 5655ea006119676a42f74accc060420081f8cb23 Mon Sep 17 00:00:00 2001 From: Tao Zhu Date: Tue, 11 Jan 2022 16:35:42 -0600 Subject: [PATCH] count vote transaction units to block cost --- core/src/banking_stage.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/banking_stage.rs b/core/src/banking_stage.rs index 0d43bbe48a..a2d7d71821 100644 --- a/core/src/banking_stage.rs +++ b/core/src/banking_stage.rs @@ -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