Skip to content

Commit

Permalink
chore: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigorov-Georgi committed Feb 7, 2025
1 parent d95c6d0 commit c02900f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/limechain/grandpa/round/GrandpaRound.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ private boolean isFinalizable() {
*
* @return if the current round is completable
*/
public boolean checkIfRoundIsCompletable() {
public boolean checkIfCompletable() {

Map<Vote, Long> votes = getDirectVotes(SubRound.PRE_COMMIT);
long votesCount = votes.values().stream()
Expand Down Expand Up @@ -370,7 +370,7 @@ public BlockHeader findGrandpaGhost() {

BlockHeader result = selectBlockWithMostVotes(blocks, getPrevBestFinalCandidate());
this.grandpaGhost = result;
this.isCompletable = checkIfRoundIsCompletable();
this.isCompletable = checkIfCompletable();

return result;
}
Expand Down

0 comments on commit c02900f

Please sign in to comment.