Adds feature reject_empty_instruction_without_program. (#21591)

This commit is contained in:
Alexander Meißner
2021-12-03 15:47:18 +01:00
committed by GitHub
parent 015250f96c
commit 1a4a039913
3 changed files with 25 additions and 5 deletions

View File

@ -257,6 +257,10 @@ pub mod leave_nonce_on_success {
solana_sdk::declare_id!("E8MkiWZNNPGU6n55jkGzyj8ghUmjCHRmDFdYYFYHxWhQ");
}
pub mod reject_empty_instruction_without_program {
solana_sdk::declare_id!("9kdtFSrXHQg3hKkbXkQ6trJ3Ja1xpJ22CTFSNAciEwmL");
}
lazy_static! {
/// Map of feature identifiers to user-visible description
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
@ -316,6 +320,7 @@ lazy_static! {
(nonce_must_be_writable::id(), "nonce must be writable"),
(spl_token_v3_3_0_release::id(), "spl-token v3.3.0 release"),
(leave_nonce_on_success::id(), "leave nonce as is on success"),
(reject_empty_instruction_without_program::id(), "fail instructions which have native_loader as program_id directly"),
/*************** ADD NEW FEATURES HERE ***************/
]
.iter()