simulate_cu

Function simulate_cu 

Source
pub async fn simulate_cu(
    rpc: &mut LightProgramTest,
    payer: &Keypair,
    instruction: &Instruction,
) -> u64
Expand description

Simulate a transaction and return the compute units consumed.

This is a test utility function for measuring transaction costs.