Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola committed Jun 21, 2024
1 parent 8715fc7 commit 393aedc
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions crates/orchestrator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,40 +139,6 @@ where
network_spec
.build_parachain_artifacts(ns.clone(), &scoped_fs, &relay_chain_id, base_dir_exists)
.await?;
// // TODO: if we don't need to register this para we can skip it
// for para in network_spec.parachains.iter_mut() {
// let chain_spec_raw_path = para
// .build_chain_spec(&relay_chain_id, &ns, &scoped_fs)
// .await?;
// debug!("parachain chain-spec built!");

// // TODO: this need to be abstracted in a single call to generate_files.
// if network_spec.global_settings.base_dir().is_some() {
// scoped_fs.create_dir_all(para.id.to_string()).await?;
// } else {
// scoped_fs.create_dir(para.id.to_string()).await?;
// };

// // create wasm/state
// para.genesis_state
// .build(
// chain_spec_raw_path.clone(),
// format!("{}/genesis-state", para.id),
// &ns,
// &scoped_fs,
// )
// .await?;
// debug!("parachain genesis state built!");
// para.genesis_wasm
// .build(
// chain_spec_raw_path,
// format!("{}/genesis-wasm", para.id),
// &ns,
// &scoped_fs,
// )
// .await?;
// debug!("parachain genesis wasm built!");
// }

// Gather the parachains to register in genesis and the ones to register with extrinsic
let (para_to_register_in_genesis, para_to_register_with_extrinsic): (
Expand All @@ -188,20 +154,6 @@ where

let mut para_artifacts = vec![];
for para in para_to_register_in_genesis {
// let genesis_config = ParaGenesisConfig {
// state_path: para.genesis_state.artifact_path().ok_or(
// OrchestratorError::InvariantError(
// "artifact path for state must be set at this point",
// ),
// )?,
// wasm_path: para.genesis_wasm.artifact_path().ok_or(
// OrchestratorError::InvariantError(
// "artifact path for wasm must be set at this point",
// ),
// )?,
// id: para.id,
// as_parachain: para.onboard_as_parachain,
// };
let genesis_config = para.get_genesis_config()?;
para_artifacts.push(genesis_config)
}
Expand Down

0 comments on commit 393aedc

Please sign in to comment.