From b357eda15b49a65c064f5d61aa9ca315c9ea4621 Mon Sep 17 00:00:00 2001 From: Tao Zhu Date: Tue, 18 Jan 2022 13:14:10 -0600 Subject: [PATCH] Revert "count vote transaction units to block cost" This reverts commit 5655ea006119676a42f74accc060420081f8cb23. --- core/src/banking_stage.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/banking_stage.rs b/core/src/banking_stage.rs index 03cd7c4742..c37899afc4 100644 --- a/core/src/banking_stage.rs +++ b/core/src/banking_stage.rs @@ -1145,7 +1145,11 @@ impl BankingStage { .filter_map(|(tx, tx_index)| { // put transaction into retry queue if it wouldn't fit // into current bank - if read_cost_tracker + 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 .would_transaction_fit( &tx, &cost_model