tx wide compute budget (#18631)
This commit is contained in:
12
programs/compute-budget/src/lib.rs
Normal file
12
programs/compute-budget/src/lib.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use solana_sdk::{
|
||||
instruction::InstructionError, process_instruction::InvokeContext, pubkey::Pubkey,
|
||||
};
|
||||
|
||||
pub fn process_instruction(
|
||||
_program_id: &Pubkey,
|
||||
_data: &[u8],
|
||||
_invoke_context: &mut dyn InvokeContext,
|
||||
) -> Result<(), InstructionError> {
|
||||
// Do nothing, compute budget instructions handled by the runtime
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user