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 9, 2025
1 parent 63bef62 commit 7fe132f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7fe132f

Please sign in to comment.