mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 23:51:05 +00:00
Refactor service to allow building full (and light) node matching chain spec (#1467)
This commit is contained in:
@@ -46,8 +46,8 @@ async fn start_inner(chain_spec: String, log_level: String) -> Result<Client, Bo
|
||||
info!("👤 Role: {}", config.display_role());
|
||||
|
||||
// Create the service. This is the most heavy initialization step.
|
||||
let (task_manager, rpc_handlers) = service::kusama_new_light(config)
|
||||
.map_err(|e| format!("{:?}", e))?;
|
||||
let builder = service::NodeBuilder::new(config);
|
||||
let (task_manager, rpc_handlers) = builder.build_light().map_err(|e| format!("{:?}", e))?;
|
||||
|
||||
Ok(browser_utils::start_client(task_manager, rpc_handlers))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user