Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Expose load_spec (#4556)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkpar authored and gavofyork committed Jan 8, 2020
1 parent 0f48ac9 commit 7805f49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ fn generate_node_name() -> String {
result
}

fn load_spec<F, G, E>(cli: &SharedParams, factory: F) -> error::Result<ChainSpec<G, E>> where
/// Load spec give shared params and spec factory.
pub fn load_spec<F, G, E>(cli: &SharedParams, factory: F) -> error::Result<ChainSpec<G, E>> where
G: RuntimeGenesis,
E: ChainSpecExtension,
F: FnOnce(&str) -> Result<Option<ChainSpec<G, E>>, String>,
Expand Down

0 comments on commit 7805f49

Please sign in to comment.