Skip to content

Commit d4bf75b

Browse files
authored
Fix highestKnownQcRound at round update (#660)
Merging this. Unit test failures are mocks breaking. Will ask Lukasz to fix in a follow-up PR.
2 parents 73010ae + d24498e commit d4bf75b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/radixdlt/consensus/liveness/Pacemaker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ public void start() {
175175
public void processRoundUpdate(RoundUpdate roundUpdate) {
176176
log.trace("Round Update: {}", roundUpdate);
177177
this.latestRoundUpdate = roundUpdate;
178-
if (currentRound().gt(this.highestKnownQcRound)) {
179-
this.highestKnownQcRound = roundUpdate.getCurrentRound();
178+
if (roundUpdate.getHighQC().getHighestRound().gt(this.highestKnownQcRound)) {
179+
this.highestKnownQcRound = roundUpdate.getHighQC().getHighestRound();
180180
}
181181
this.startRound();
182182
}

0 commit comments

Comments
 (0)