Skip to content

Commit

Permalink
Renamed isRoundReadyToEnd method to isRoundReadyToFinalized
Browse files Browse the repository at this point in the history
  • Loading branch information
Hristiyan Mitov committed Feb 7, 2025
1 parent 20fe021 commit 3f10834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/limechain/grandpa/round/FinalizeStage.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ public void start(GrandpaRound round) {

log.fine(String.format("Round %d entered the Finalize stage.", round.getRoundNumber()));

if (isRoundReadyToFinalized(round)) {
if (isRoundReadyToBeFinalized(round)) {
end(round);
return;
}

Runnable onFinalizeHandler = () -> {
if (isRoundReadyToFinalized(round)) {
if (isRoundReadyToBeFinalized(round)) {
end(round);
}
};
Expand All @@ -34,7 +34,7 @@ public void end(GrandpaRound round) {
round.end();
}

private boolean isRoundReadyToFinalized(GrandpaRound round) {
private boolean isRoundReadyToBeFinalized(GrandpaRound round) {
BlockHeader finalized = round.getFinalizedBlock();
BlockHeader prevBestFinalCandidate = round.getPrevBestFinalCandidate();

Expand Down

0 comments on commit 3f10834

Please sign in to comment.