Expand description
Cluster Management for Multi-Node Testing
This module provides the core infrastructure for managing clusters of Mina nodes during testing scenarios. It supports both Rust and OCaml node implementations, enabling cross-implementation testing and complex multi-node scenarios.
ยงKey Components
Cluster- Main cluster coordinator managing node lifecycle- Node addition methods for different node types
- Port allocation and resource management
- Scenario execution and state tracking
- Network debugger integration
ยงNode Addition Methods
Cluster::add_rust_node- Add Rust implementation nodesCluster::add_ocaml_node- Add OCaml implementation nodes
ยงExample
let mut cluster = Cluster::new(ClusterConfig::default());
// Add Rust node with custom configuration
let rust_node = cluster.add_rust_node(RustNodeTestingConfig::default());
// Add OCaml node for cross-implementation testing
let ocaml_node = cluster.add_ocaml_node(OcamlNodeTestingConfig::default());Modulesยง
- config ๐
- node_id ๐
- p2p_
task_ ๐spawner - runner
Structsยง
- Cluster
- Manages a cluster of Mina nodes for testing scenarios.
- Cluster
Config - Cluster
Node Id - Cluster
Ocaml Node Id - Cluster
Scenario Run - Tracks the execution state of scenario chains within a cluster.
- VERIFIER_
SRS ๐
Enumsยง
Functionsยง
- mina_
path ๐ - read_
index ๐ - write_
index ๐