test-utils: add chain-spec-builder cli (#1061)

* test-utils: add chain-spec-builder cli

* style changes, mostly indentation

* fix padding

* add issue to todo

* more style fixes

* share seed padding with keystore

* fix master rebase error
This commit is contained in:
azban
2018-11-12 11:21:03 -08:00
committed by Gav Wood
parent 168de867f5
commit 367c99b2bb
11 changed files with 4116 additions and 56 deletions
+3 -1
View File
@@ -139,10 +139,12 @@ impl<Components> Service<Components>
let executor = NativeExecutor::new();
let mut keystore = Keystore::open(config.keystore_path.as_str().into())?;
// This is meant to be for testing only
// FIXME: remove this - https://github.com/paritytech/substrate/issues/1063
for seed in &config.keys {
keystore.generate_from_seed(seed)?;
}
// Keep the public key for telemetry
let public_key = match keystore.contents()?.get(0) {
Some(public_key) => public_key.clone(),