Feature-gate hash-based duplicate transaction check (#16600)

(cherry picked from commit 285f3c9d56)

# Conflicts:
#	sdk/src/feature_set.rs

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2021-04-16 20:23:33 +00:00
committed by GitHub
parent 151d9bd28c
commit 8beaa43e6e
2 changed files with 33 additions and 21 deletions

View File

@@ -179,6 +179,10 @@ pub mod upgradeable_close_instruction {
solana_sdk::declare_id!("FsPaByos3gA9bUEhp3EimQpQPCoSvCEigHod496NmABQ");
}
pub mod check_duplicates_by_hash {
solana_sdk::declare_id!("8ZqTSYHgzyaYCcXJPMViRy6afCFSgNvYooPDeVdyj5GC");
}
lazy_static! {
/// Map of feature identifiers to user-visible description
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
@@ -224,6 +228,7 @@ lazy_static! {
(check_program_owner::id(), "limit programs to operating on accounts owned by itself"),
(cpi_data_cost::id(), "charge the compute budget for data passed via CPI"),
(upgradeable_close_instruction::id(), "close upgradeable buffer accounts"),
(check_duplicates_by_hash::id(), "use transaction message hash for duplicate check"),
/*************** ADD NEW FEATURES HERE ***************/
]
.iter()