Structs§
Constants§
- DEFAULT_
HEAP_ COST - Roughly 0.5us/page, where page is 32K; given roughly 15CU/us, the default heap page cost = 0.5 * 15 ~= 8CU/page
- DEFAULT_
INSTRUCTION_ COMPUTE_ UNIT_ LIMIT - MAX_
COMPUTE_ UNIT_ LIMIT - MAX_
HEAP_ FRAME_ BYTES - MAX_
LOADED_ ACCOUNTS_ DATA_ SIZE_ BYTES - The total accounts data a transaction can load is limited to 64MiB to not break anyone in Mainnet-beta today. It can be set by set_loaded_accounts_data_size_limit instruction
- MIN_
HEAP_ FRAME_ BYTES
Functions§
- process_
compute_ budget_ instructions - Processing compute_budget could be part of tx sanitizing, failed to process these instructions will drop the transaction eventually without execution, may as well fail it early. If succeeded, the transaction’s specific limits/requests (could be default) are retrieved and returned,