solana_runtime_transaction::instructions_processor

Function process_compute_budget_instructions

Source
pub fn process_compute_budget_instructions<'a>(
    instructions: impl Iterator<Item = (&'a Pubkey, SVMInstruction<'a>)>,
) -> Result<ComputeBudgetLimits, TransactionError>
Expand description

Processing compute_budget could be part of tx sanitizing, failed to process these instructions will drop the transaction eventually without execution, may as well fail it early. If succeeded, the transaction’s specific limits/requests (could be default) are retrieved and returned,