Skip to content

Commit

Permalink
Fix broken factory by adding keystore back. (#4840)
Browse files Browse the repository at this point in the history
  • Loading branch information
seerscode authored Feb 6, 2020
1 parent c7867e5 commit f891342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions substrate/bin/node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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."),
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f891342

Please sign in to comment.