Skip to content

Commit

Permalink
rename LEADER_INDEX with COORDINATOR_INDEX
Browse files Browse the repository at this point in the history
  • Loading branch information
wen-coding committed Oct 5, 2024
1 parent a2fa2d2 commit 578b460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wen-restart/src/wen_restart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ mod tests {
const TICKS_PER_SLOT: u64 = 2;
const TOTAL_VALIDATOR_COUNT: u16 = 20;
const MY_INDEX: usize = TOTAL_VALIDATOR_COUNT as usize - 1;
const LEADER_INDEX: usize = 0;
const COORDINATOR_INDEX: usize = 0;
const WAIT_FOR_THREAD_TIMEOUT: u64 = 10_000;
const WAIT_FOR_SUPERMAJORITY_THRESHOLD_PERCENT: u64 = 80;
const NON_CONFORMING_VALIDATOR_PERCENT: u64 = 5;
Expand Down Expand Up @@ -1442,7 +1442,7 @@ mod tests {
.node_keypair
.insecure_clone(),
);
let wen_restart_coordinator = validator_voting_keypairs[LEADER_INDEX]
let wen_restart_coordinator = validator_voting_keypairs[COORDINATOR_INDEX]
.node_keypair
.pubkey();
let cluster_info = Arc::new(ClusterInfo::new(
Expand Down

0 comments on commit 578b460

Please sign in to comment.