Fix broken factory by adding keystore back. (#4840)

This commit is contained in:
Marcio Diaz authored and GitHub committed 2020-02-06 14:48:19 +01:00
1 parent c7867e5125
commit f891342f20
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -50,6 +50,8 @@ where
cli_args.shared_params.dev,
)?;
sc_cli::fill_config_keystore_in_memory(&mut config)?;
match ChainSpec::from(config.expect_chain_spec().id()) {
Some(ref c) if c == &ChainSpec::Development || c == &ChainSpec::LocalTestnet => {},
_ => panic!("Factory is only supported for development and local testnet."),
+1 -1
View File
@@ -445,7 +445,7 @@ fn input_keystore_password() -> Result<String, String> {
}
/// Use in memory keystore config when it is not required at all.
fn fill_config_keystore_in_memory<G, E>(config: &mut sc_service::Configuration<G, E>)
pub fn fill_config_keystore_in_memory<G, E>(config: &mut sc_service::Configuration<G, E>)
-> Result<(), String>
{
match &mut config.keystore {