Add Preview operating mode, rename SoftLaunch operating mode to Stable (#8331)

automerge
This commit is contained in:
Michael Vines
2020-02-19 17:48:58 -07:00
committed by GitHub
parent 8ae26867c5
commit 8c19b6268c
5 changed files with 45 additions and 26 deletions

View File

@ -163,7 +163,7 @@ impl LocalCluster {
genesis_config.poh_config = config.poh_config.clone();
match genesis_config.operating_mode {
OperatingMode::SoftLaunch => {
OperatingMode::Stable | OperatingMode::Preview => {
genesis_config.native_instruction_processors =
solana_genesis_programs::get_programs(genesis_config.operating_mode, 0)
.unwrap()

View File

@ -552,7 +552,7 @@ fn test_softlaunch_operating_mode() {
solana_logger::setup();
let config = ClusterConfig {
operating_mode: OperatingMode::SoftLaunch,
operating_mode: OperatingMode::Stable,
node_stakes: vec![100; 1],
cluster_lamports: 1_000,
validator_configs: vec![ValidatorConfig::default(); 1],