solana/programs/compute-budget/src/lib.rs

9 lines
272 B
Rust

use solana_program_runtime::declare_process_instruction;
pub const DEFAULT_COMPUTE_UNITS: u64 = 150;
declare_process_instruction!(Entrypoint, DEFAULT_COMPUTE_UNITS, |_invoke_context| {
// Do nothing, compute budget instructions handled by the runtime
Ok(())
});