Skip to main content

add_nodes

Function add_nodes 

Source
pub async fn add_nodes(
    opts: AddNodeOpts,
    registry_path: &Path,
    progress: &dyn ProgressReporter,
) -> Result<AddNodeResult>
Expand description

Add one or more nodes to the registry.

This function:

  1. Resolves the binary (download if needed)
  2. Loads the registry (with file lock)
  3. Validates port ranges match count
  4. Creates data and log directories for each node
  5. Assigns IDs and saves the registry

Does NOT start the nodes. Does NOT require the daemon.