Skip to content

Commit

Permalink
run right away
Browse files Browse the repository at this point in the history
  • Loading branch information
coachchucksol committed May 28, 2024
1 parent 771bdeb commit a54131a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keepers/validator-keeper/src/operations/vote_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ fn _get_operation() -> KeeperOperations {
}

fn _should_run(epoch_info: &EpochInfo, runs_for_epoch: u64) -> bool {
// Run at 10%, 50% and 90% completion of epoch
(epoch_info.slot_index > epoch_info.slots_in_epoch / 10 && runs_for_epoch < 1)
// Run at 0.1%, 50% and 90% completion of epoch
(epoch_info.slot_index > epoch_info.slots_in_epoch / 1000 && runs_for_epoch < 1)
|| (epoch_info.slot_index > epoch_info.slots_in_epoch * 5 / 10 && runs_for_epoch < 2)
|| (epoch_info.slot_index > epoch_info.slots_in_epoch * 9 / 10 && runs_for_epoch < 3)
}
Expand Down

0 comments on commit a54131a

Please sign in to comment.