use of com.radixdlt.environment.deterministic.MultiNodeDeterministicRunner in project radixdlt by radixdlt.
the class DeterministicActorsTest method setup.
@SuppressWarnings("UnstableApiUsage")
@Before
public void setup() {
var allNodes = nodeKeys.stream().map(k -> BFTNode.create(k.getPublicKey())).toList();
this.network = new DeterministicNetwork(allNodes, MessageSelector.firstSelector(), MessageMutator.nothing());
var nodeCreators = Streams.mapWithIndex(nodeKeys.stream(), (k, i) -> (Supplier<Injector>) () -> createRunner(i == 1, k, allNodes)).toList();
deterministicRunner = new MultiNodeDeterministicRunner(nodeCreators, this::stopDatabase, network);
deterministicRunner.start();
}
Aggregations