Skip to content

Commit 3e972b2

Browse files
committed
Commented out the cause of seeded bug
1 parent 7ed3943 commit 3e972b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simulator/src/main/java/byzzbench/simulator/protocols/hbft/MessageLog.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public void appendCheckpoint(CheckpointMessage checkpoint, int tolerance, Specul
219219
int matching = 0;
220220

221221
for (CheckpointMessage proof : checkpointProofs.values()) {
222-
if (proof.equals(checkpoint)) {
222+
if (proof.equals(checkpoint) /* Arrays.equals(proof.getDigest(), checkpoint.getDigest()) */) {
223223
matching++;
224224

225225
if (matching == stableCount) {
@@ -240,7 +240,7 @@ public boolean isCER1(CheckpointMessage checkpoint, int tolerance) {
240240
int matching = 0;
241241

242242
for (CheckpointMessage proof : checkpointProofs.values()) {
243-
if (proof.equals(checkpoint)) {
243+
if (proof.equals(checkpoint) /* Arrays.equals(proof.getDigest(), checkpoint.getDigest()) */) {
244244
matching++;
245245
}
246246
}
@@ -257,7 +257,7 @@ public boolean isCER2(CheckpointMessage checkpoint, int tolerance) {
257257
int matching = 0;
258258

259259
for (CheckpointMessage proof : checkpointProofs.values()) {
260-
if (proof.equals(checkpoint)) {
260+
if (proof.equals(checkpoint) /* Arrays.equals(proof.getDigest(), checkpoint.getDigest()) */) {
261261
matching++;
262262
}
263263
}

0 commit comments

Comments
 (0)