* Simpler cap by including sysvars and native programs
* Fix tests
* Add comment
* revert some unrelated code
* Update test_bank_update_sysvar_account for cap.
* Test cap. for add_native_program using new helper
* Improve the cap adjustment with new tests
* Fix typo...
* Adjust test for improved code coverage
* Rename simpler_capitalization => simple_capitalization
* More rename and bonus commenting
(cherry picked from commit de9ac43ebf
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
@@ -98,6 +98,10 @@ pub mod filter_stake_delegation_accounts {
|
||||
solana_sdk::declare_id!("GE7fRxmW46K6EmCD9AMZSbnaJ2e3LfqCZzdHi9hmYAgi");
|
||||
}
|
||||
|
||||
pub mod simple_capitalization {
|
||||
solana_sdk::declare_id!("9r69RnnxABmpcPFfj1yhg4n9YFR2MNaLdKJCC6v3Speb");
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
/// Map of feature identifiers to user-visible description
|
||||
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
|
||||
@@ -124,6 +128,7 @@ lazy_static! {
|
||||
(stake_program_v2::id(), "solana_stake_program v2"),
|
||||
(rewrite_stake::id(), "rewrite stake"),
|
||||
(filter_stake_delegation_accounts::id(), "filter stake_delegation_accounts #14062"),
|
||||
(simple_capitalization::id(), "simple capitalization"),
|
||||
/*************** ADD NEW FEATURES HERE ***************/
|
||||
]
|
||||
.iter()
|
||||
|
@@ -149,6 +149,11 @@ impl GenesisConfig {
|
||||
hash(&serialized)
|
||||
}
|
||||
|
||||
pub fn disable_cap_altering_features_for_preciseness(&mut self) {
|
||||
self.accounts
|
||||
.remove(&crate::feature_set::simple_capitalization::id());
|
||||
}
|
||||
|
||||
fn genesis_filename(ledger_path: &Path) -> PathBuf {
|
||||
Path::new(ledger_path).join("genesis.bin")
|
||||
}
|
||||
|
Reference in New Issue
Block a user