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

automerge
This commit is contained in:
mergify[bot]
2020-02-19 18:13:41 -08:00
committed by GitHub
parent 90af35737d
commit 5fbddd5894
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],