Module cluster

Module cluster 

Source
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

ยง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.
ClusterConfig
ClusterNodeId
ClusterOcamlNodeId
ClusterScenarioRun
Tracks the execution state of scenario chains within a cluster.
VERIFIER_SRS ๐Ÿ”’

Enumsยง

ProofKind

Functionsยง

mina_path ๐Ÿ”’
read_index ๐Ÿ”’
write_index ๐Ÿ”’