Skip to content

Commit

Permalink
Add storage rewards pools in development mode only (#8300)
Browse files Browse the repository at this point in the history
automerge
  • Loading branch information
mergify[bot] authored Feb 15, 2020
1 parent c89b355 commit cb84099
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions genesis/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,9 @@ fn main() -> Result<(), Box<dyn error::Error>> {
);
}

// add genesis stuff from storage and stake
solana_storage_program::rewards_pools::add_genesis_accounts(&mut genesis_config);
if operating_mode == OperatingMode::Development {
solana_storage_program::rewards_pools::add_genesis_accounts(&mut genesis_config);
}
solana_stake_program::add_genesis_accounts(&mut genesis_config);

if let Some(files) = matches.values_of("primordial_accounts_file") {
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/genesis_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use std::{
time::{SystemTime, UNIX_EPOCH},
};

#[derive(Serialize, Deserialize, Debug, Clone, Copy)]
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq)]
pub enum OperatingMode {
SoftLaunch, // Cluster features incrementally enabled over time
Development, // All features (including experimental features) available immediately from genesis
Expand Down

0 comments on commit cb84099

Please sign in to comment.