Expose load_spec (#4556)

This commit is contained in:
Arkadiy Paronyan
2020-01-07 15:08:27 +01:00
committed by GitHub
parent 6a0e60c3a4
commit bc9676737f
+2 -1
View File
@@ -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>,