mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user