From 7fe132fb1c678c36330549eecb110b116162a13f Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Mon, 6 Jan 2025 16:40:16 -0600 Subject: [PATCH] vote-only discarding --- .../transaction_scheduler/receive_and_buffer.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/banking_stage/transaction_scheduler/receive_and_buffer.rs b/core/src/banking_stage/transaction_scheduler/receive_and_buffer.rs index 70bf9c7b58075a..9284c0f9ed5028 100644 --- a/core/src/banking_stage/transaction_scheduler/receive_and_buffer.rs +++ b/core/src/banking_stage/transaction_scheduler/receive_and_buffer.rs @@ -479,6 +479,11 @@ impl TransactionViewReceiveAndBuffer { return Err(()); }; + // Discard non-vote packets if in vote-only mode. + if root_bank.vote_only_bank() && !view.is_simple_vote_transaction() { + return Err(()); + } + // Check excessive pre-compiles. let signature_details = view.signature_details(); let num_precompiles = signature_details.num_ed25519_instruction_signatures()