programs/config: Disallow duplicate signers

This commit is contained in:
Trent Nelson
2021-06-03 11:36:39 -06:00
committed by mergify[bot]
parent 738df79394
commit 98e34f07df
2 changed files with 105 additions and 0 deletions

View File

@@ -147,6 +147,10 @@ pub mod system_transfer_zero_check {
solana_sdk::declare_id!("BrTR9hzw4WBGFP65AJMbpAo64DcA3U6jdPSga9fMV5cS");
}
pub mod dedupe_config_program_signers {
solana_sdk::declare_id!("8kEuAshXLsgkUEdcFVLqrjCGGHVWFW99ZZpxvAzzMtBp");
}
lazy_static! {
/// Map of feature identifiers to user-visible description
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
@@ -184,6 +188,7 @@ lazy_static! {
(memory_ops_syscalls::id(), "add syscalls for memory operations"),
(add_missing_program_error_mappings::id(), "add missing program error mappings"),
(system_transfer_zero_check::id(), "perform all checks for transfers of 0 lamports"),
(dedupe_config_program_signers::id(), "dedupe config program signers"),
/*************** ADD NEW FEATURES HERE ***************/
]
.iter()