Skip to main content

solana_compute_budget_program/
lib.rs

1#![cfg(feature = "agave-unstable-api")]
2use solana_program_runtime::declare_process_instruction;
3
4pub const DEFAULT_COMPUTE_UNITS: u64 = 150;
5
6declare_process_instruction!(Entrypoint, DEFAULT_COMPUTE_UNITS, |_invoke_context| {
7    // Do nothing, compute budget instructions handled by the runtime
8    Ok(())
9});