Function solana_randomness_service::assert_not_cpi_call
source · pub fn assert_not_cpi_call(
sysvar_info: &AccountInfo<'_>
) -> Result<(), ProgramError>
Expand description
Asserts that the current instruction is not a CPI call. This is to prevent re-entrancy from user provided callbacks.