solana_sdk::simple_vote_transaction_checker

Function is_simple_vote_transaction

Source
pub fn is_simple_vote_transaction(
    sanitized_versioned_transaction: &SanitizedVersionedTransaction,
) -> bool
Expand description

Simple vote transaction meets these conditions:

  1. has 1 or 2 signatures;
  2. is legacy message;
  3. has only one instruction;
  4. which must be Vote instruction;