Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions feature-set/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ impl FeatureSet {
.is_active(&move_precompile_verification_to_svm::id()),
remove_accounts_executable_flag_checks: self
.is_active(&remove_accounts_executable_flag_checks::id()),
bpf_account_data_direct_mapping: self.is_active(&bpf_account_data_direct_mapping::id()),
stricter_abi_and_runtime_constraints: self
.is_active(&stricter_abi_and_runtime_constraints::id()),
enable_bpf_loader_set_authority_checked_ix: self
.is_active(&enable_bpf_loader_set_authority_checked_ix::id()),
enable_loader_v4: self.is_active(&enable_loader_v4::id()),
Expand Down Expand Up @@ -752,8 +753,8 @@ pub mod apply_cost_tracker_during_replay {
solana_pubkey::declare_id!("2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj");
}

pub mod bpf_account_data_direct_mapping {
solana_pubkey::declare_id!("1ncomp1ete111111111111111111111111111111111");
pub mod stricter_abi_and_runtime_constraints {
solana_pubkey::declare_id!("C37iaPi6VE4CZDueU1vL8y6pGp5i8amAbEsF31xzz723");
}

pub mod add_set_tx_loaded_accounts_data_size_instruction {
Expand Down Expand Up @@ -1279,7 +1280,7 @@ pub static FEATURE_NAMES: LazyLock<AHashMap<Pubkey, &'static str>> = LazyLock::n
(clean_up_delegation_errors::id(), "Return InsufficientDelegation instead of InsufficientFunds or InsufficientStake where applicable #31206"),
(vote_state_add_vote_latency::id(), "replace Lockout with LandedVote (including vote latency) in vote state #31264"),
(checked_arithmetic_in_fee_validation::id(), "checked arithmetic in fee validation #31273"),
(bpf_account_data_direct_mapping::id(), "use memory regions to map account data into the rbpf vm instead of copying the data"),
(stricter_abi_and_runtime_constraints::id(), "use memory regions to map account data into the rbpf vm instead of copying the data"),
(last_restart_slot_sysvar::id(), "enable new sysvar last_restart_slot"),
(reduce_stake_warmup_cooldown::id(), "reduce stake warmup cooldown from 25% to 9%"),
(revise_turbine_epoch_stakes::id(), "revise turbine epoch stakes"),
Expand Down
3 changes: 2 additions & 1 deletion ledger-tool/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ pub fn program(ledger_path: &Path, matches: &ArgMatches<'_>) {
.transaction_context
.get_current_instruction_context()
.unwrap(),
false, // direct_mapping
false, // stricter_abi_and_runtime_constraints
false, // account_data_direct_mapping
true, // for mask_out_rent_epoch_in_vm_serialization
)
.unwrap();
Expand Down
3 changes: 3 additions & 0 deletions program-runtime/src/invoke_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ pub struct InvokeContext<'a> {
pub timings: ExecuteDetailsTimings,
pub syscall_context: Vec<Option<SyscallContext>>,
traces: Vec<Vec<[u64; 12]>>,
/// Stops copying account data if stricter_abi_and_runtime_constraints is enabled
pub account_data_direct_mapping: bool,
}

impl<'a> InvokeContext<'a> {
Expand All @@ -226,6 +228,7 @@ impl<'a> InvokeContext<'a> {
timings: ExecuteDetailsTimings::default(),
syscall_context: Vec::new(),
traces: Vec::new(),
account_data_direct_mapping: false,
}
}

Expand Down
Loading
Loading