Add a browser-utils crate (#4394)

* Squash

* Fix keystore on wasm

* Update utils/browser/Cargo.toml

Co-Authored-By: Benjamin Kampmann <ben@gnunicorn.org>

* export console functions

* Use an Option<PathBuf> in keystore instead of cfg flags

* Add a KeystoreConfig

* Update libp2p

* Bump kvdb-web version

* Fix cli

* Upgrade versions

* Update wasm-bindgen stuff

Co-authored-by: Benjamin Kampmann <ben.kampmann@googlemail.com>
This commit is contained in:
Ashley
2020-01-07 16:30:04 +01:00
committed by GitHub
parent d76a33033d
commit bb44f8fc24
13 changed files with 432 additions and 254 deletions
+5 -3
View File
@@ -29,7 +29,7 @@ use sc_service::{
AbstractService,
ChainSpec,
Configuration,
config::DatabaseConfig,
config::{DatabaseConfig, KeystoreConfig},
Roles,
Error,
};
@@ -173,8 +173,10 @@ fn node_config<G, E: Clone> (
roles: role,
transaction_pool: Default::default(),
network: network_config,
keystore_path: Some(root.join("key")),
keystore_password: None,
keystore: KeystoreConfig::Path {
path: Some(root.join("key")),
password: None
},
config_dir: Some(root.clone()),
database: DatabaseConfig::Path {
path: root.join("db"),