Skip to content

Commit

Permalink
change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Apr 4, 2024
1 parent 14a94ea commit 78edae4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public Optional<Integer> getValidatorIndex(
if (validatorIndex.isPresent()) {
return validatorIndex.filter(index -> index < validators.size());
}
// Making sure to use the same latestFinalizedIndex when scanning through
// the finalized and the non-finalized states
// Using the same latestFinalizedIndex when scanning through
// the finalized and the non-finalized states ensures consistency
final int latestFinalizedIndexSnapshot = latestFinalizedIndex.get();
return findIndexFromFinalizedState(validators, publicKey, latestFinalizedIndexSnapshot)
.or(
Expand Down

0 comments on commit 78edae4

Please sign in to comment.