From fc180f4cbf4416580e8b207fa5e3fd4b250ef52c Mon Sep 17 00:00:00 2001 From: carllin Date: Fri, 5 Jul 2019 15:45:39 -0700 Subject: [PATCH] Halve stake of malicious validator (#4937) --- core/tests/local_cluster.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/tests/local_cluster.rs b/core/tests/local_cluster.rs index be970b1497..bb478d21cb 100644 --- a/core/tests/local_cluster.rs +++ b/core/tests/local_cluster.rs @@ -244,10 +244,11 @@ fn test_fail_entry_verification_leader() { error_validator_config.broadcast_stage_type = BroadcastStageType::FailEntryVerification; let mut validator_configs = vec![validator_config; num_nodes - 1]; validator_configs.push(error_validator_config); - + let mut node_stakes = vec![100; num_nodes - 1]; + node_stakes.push(50); let cluster_config = ClusterConfig { cluster_lamports: 10_000, - node_stakes: vec![100; 4], + node_stakes, validator_configs: validator_configs, slots_per_epoch: MINIMUM_SLOTS_PER_EPOCH * 2 as u64, stakers_slot_offset: MINIMUM_SLOTS_PER_EPOCH * 2 as u64,