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 234cf35 commit d95c6d0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ public void end(GrandpaRound round) {
try {

Vote grandpaGhost = Vote.fromBlockHeader(round.getGrandpaGhost());
log.fine(String.format("Round %d ended pre-commit stage.", round.getRoundNumber()));

round.broadcastVoteMessage(grandpaGhost, SubRound.PRE_COMMIT);
round.setState(new FinalizeStage());
round.getState().start(round);
log.fine(String.format("Round %d ended pre-commit stage.", round.getRoundNumber()));

} catch (GrandpaGenericException e) {
log.fine(String.format("Round %d cannot end now: %s", round.getRoundNumber(), e.getMessage()));
Expand Down

0 comments on commit d95c6d0

Please sign in to comment.