Updated for the new db (#996)

* Updated for the new db

* Bumped version

* Sort out features

* Update to substrate master
This commit is contained in:
Arkadiy Paronyan
2020-04-15 15:08:51 +02:00
committed by GitHub
parent c6134cf91a
commit 280bf3928a
5 changed files with 290 additions and 254 deletions
+3 -4
View File
@@ -363,10 +363,9 @@ pub fn new_full<Runtime, Dispatch, Extrinsic>(
let is_authority = role.is_authority() && !is_collator;
let force_authoring = config.force_authoring;
let max_block_data_size = max_block_data_size;
let db_path = if let DatabaseConfig::Path { ref path, .. } = config.database {
path.clone()
} else {
return Err("Starting a Polkadot service with a custom database isn't supported".to_string().into());
let db_path = match config.database.path() {
Some(path) => std::path::PathBuf::from(path),
None => return Err("Starting a Polkadot service with a custom database isn't supported".to_string().into()),
};
let disable_grandpa = config.disable_grandpa;
let name = config.network.node_name.clone();