Structs§
- A table of 256 booleans indicates whether the first
u8
of a Pubkey exists in BUILTIN_INSTRUCTION_COSTS. If the value is true, the Pubkey might be a builtin key; if false, it cannot be a builtin key. This table allows for quick filtering of builtin program IDs without the need for hashing.
Enums§
- DEVELOPER: when a builtin is migrated to sbpf, please add its corresponding migration feature ID to BUILTIN_INSTRUCTION_COSTS, and move it from NON_MIGRATING_BUILTINS_COSTS to MIGRATING_BUILTINS_COSTS, so the builtin’s default cost can be determined properly based on feature status. When migration completed, eg the feature gate is enabled everywhere, please remove that builtin entry from MIGRATING_BUILTINS_COSTS.
Constants§
Functions§
- Helper function to return ref of migration feature Pubkey at position
index
from MIGRATING_BUILTINS_COSTS