Skip to main content

Crate rialo_s_feature_set

Crate rialo_s_feature_set 

Source
Expand description

Collection of all runtime features.

Steps to add a new feature are outlined below. Note that these steps only cover the process of getting a feature into the core Solana code.

  1. Generate a new keypair with solana-keygen new --outfile feature.json --no-passphrase
    • Keypairs should be held by core contributors only. If you’re a non-core contributor going through these steps, the PR process will facilitate a keypair holder being picked. That person will generate the keypair, provide pubkey for PR, and ultimately enable the feature.
  2. Add a public module for the feature, specifying keypair pubkey as the id with rialo_s_pubkey::declare_id!() within the module. Additionally, add an entry to FEATURE_NAMES map.
  3. Add desired logic to check for and switch on feature availability.

For more information on how features are picked up, see comments for Feature.

Modules§

abort_on_invalid_curve
add_new_reserved_account_keys
blake3_syscall_enabled
bpf_account_data_direct_mapping
curve25519_syscall_enabled
deplete_cu_meter_on_vm_failure
disable_deploy_of_alloc_free_syscall
disable_fees_sysvar
disable_new_loader_v3_deployments
disable_rent_fees_collection
disable_sbpf_v0_execution
ed25519_precompile_verify_strict
enable_alt_bn128_compression_syscall
enable_alt_bn128_syscall
enable_big_mod_exp_syscall
enable_bpf_loader_set_authority_checked_ix
enable_loader_v4
enable_poseidon_syscall
enable_sbpf_v1_deployment_and_execution
enable_sbpf_v2_deployment_and_execution
enable_sbpf_v3_deployment_and_execution
enable_secp256r1_precompile
enable_transaction_loading_failure_fees
fix_alt_bn128_multiplication_input_length
full_inflation
get_sysvar_syscall_enabled
increase_tx_account_lock_limit
lift_cpi_caller_restriction
loosen_cpi_size_restriction
move_precompile_verification_to_svm
pico_inflation
raise_block_limits_to_50m
reenable_sbpf_v0_execution
remaining_compute_units_syscall_enabled
remove_accounts_executable_flag_checks
reserve_minimal_cus_for_builtin_instructions
reward_full_priority_fee

Structs§

FeatureSet
FeatureSet holds the set of currently active/inactive runtime features
FullInflationFeaturePair

Statics§

FEATURE_NAMES
Map of feature identifiers to user-visible description
FULL_INFLATION_FEATURE_PAIRS
Set of feature pairs that once enabled will trigger full inflation
ID
Unique identifier of the current software’s feature set