Skip to content

Commit 386ebe4

Browse files
committed
Twins: sample from faulty replica IDs
1 parent 95f5d57 commit 386ebe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simulator/src/main/java/byzzbench/simulator/scheduler/twins/TwinsScheduler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public String getId() {
4747
@Override
4848
public void initializeScenario(Scenario scenario) {
4949
// Get the IDs of the replicas
50-
List<String> replicaIds = scenario.getReplicas().keySet().stream().sorted().toList();
50+
List<String> replicaIds = scenario.getFaultyReplicaIds().stream().toList();
5151

5252
if (replicaIds.size() < numReplicas) {
5353
throw new IllegalArgumentException("Not enough replicas to create " + numReplicas + " twins");

0 commit comments

Comments
 (0)