Skip to content

Commit

Permalink
vote-only discarding
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Jan 6, 2025
1 parent b7e9e2c commit 4c4bae1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,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()
Expand Down

0 comments on commit 4c4bae1

Please sign in to comment.