From c02900f26f62e9cb6e04d296f3fd052bfdc33133 Mon Sep 17 00:00:00 2001 From: Grigorov-Georgi Date: Fri, 7 Feb 2025 14:40:09 +0200 Subject: [PATCH] chore: refactor --- src/main/java/com/limechain/grandpa/round/GrandpaRound.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/limechain/grandpa/round/GrandpaRound.java b/src/main/java/com/limechain/grandpa/round/GrandpaRound.java index 6d86bd67..29dbc962 100644 --- a/src/main/java/com/limechain/grandpa/round/GrandpaRound.java +++ b/src/main/java/com/limechain/grandpa/round/GrandpaRound.java @@ -254,7 +254,7 @@ private boolean isFinalizable() { * * @return if the current round is completable */ - public boolean checkIfRoundIsCompletable() { + public boolean checkIfCompletable() { Map votes = getDirectVotes(SubRound.PRE_COMMIT); long votesCount = votes.values().stream() @@ -370,7 +370,7 @@ public BlockHeader findGrandpaGhost() { BlockHeader result = selectBlockWithMostVotes(blocks, getPrevBestFinalCandidate()); this.grandpaGhost = result; - this.isCompletable = checkIfRoundIsCompletable(); + this.isCompletable = checkIfCompletable(); return result; }