quick bail on panic (#25804)

This commit is contained in:
Jack May 2022-06-07 06:45:45 -07:00 committed by GitHub
parent 363d8d1539
commit ff68bf6c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -27,7 +27,7 @@ use {
disable_fees_sysvar, do_support_realloc, executables_incur_cpi_data_cost,
fixed_memcpy_nonoverlapping_check, libsecp256k1_0_5_upgrade_enabled,
limit_secp256k1_recovery_id, prevent_calling_precompiles_as_programs,
return_data_syscall_enabled, secp256k1_recover_syscall_enabled,
quick_bail_on_panic, return_data_syscall_enabled, secp256k1_recover_syscall_enabled,
sol_log_data_syscall_enabled, syscall_saturated_math, update_syscall_base_costs,
zk_token_sdk_enabled,
},
@ -606,6 +606,9 @@ declare_syscall!(
if !invoke_context
.feature_set
.is_active(&update_syscall_base_costs::id())
|| invoke_context
.feature_set
.is_active(&quick_bail_on_panic::id())
{
question_mark!(invoke_context.get_compute_meter().consume(len), result);
}

View File

@ -428,6 +428,10 @@ pub mod vote_state_update_credit_per_dequeue {
solana_sdk::declare_id!("CveezY6FDLVBToHDcvJRmtMouqzsmj4UXYh5ths5G5Uv");
}
pub mod quick_bail_on_panic {
solana_sdk::declare_id!("DpJREPyuMZ5nDfU6H3WTqSqUFSXAfw8u7xqmWtEwJDcP");
}
lazy_static! {
/// Map of feature identifiers to user-visible description
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
@ -528,6 +532,7 @@ lazy_static! {
(separate_nonce_from_blockhash::id(), "separate durable nonce and blockhash domains #25744"),
(enable_durable_nonce::id(), "enable durable nonce #25744"),
(vote_state_update_credit_per_dequeue::id(), "Calculate vote credits for VoteStateUpdate per vote dequeue to match credit awards for Vote instruction"),
(quick_bail_on_panic::id(), "quick bail on panic"),
/*************** ADD NEW FEATURES HERE ***************/
]
.iter()