mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 22:51:13 +00:00
Companion PR for https://github.com/paritytech/substrate/pull/7463 (#1948)
* Adapt service creation to new substrate API * Fix test * WIP * Revert "WIP" This reverts commit 816a3633e91abc943b12b2bfa77ce98b959e78b2. * WIP * Adapt to current code * Fix tests * Yet another fix * CLEANUP * WIP * WIP * WIP * Adapt code to changes on substrate * Adapt code * Introduce kick. * Fixes * WIP * WIP * WIP * WIP * Bump * Update sp-io * WIP Co-authored-by: Gav Wood <gavin@parity.io> Co-authored-by: Parity Benchmarking Bot <admin@parity.io>
This commit is contained in:
@@ -170,7 +170,7 @@ pub fn run() -> Result<()> {
|
||||
let role = config.role.clone();
|
||||
|
||||
let task_manager = match role {
|
||||
Role::Light => service::build_light(config).map(|(task_manager, _)| task_manager),
|
||||
Role::Light => service::build_light(config).map(|(task_manager, _, _)| task_manager),
|
||||
_ => service::build_full(
|
||||
config,
|
||||
service::IsCollator::No,
|
||||
@@ -249,15 +249,9 @@ pub fn run() -> Result<()> {
|
||||
})?)
|
||||
},
|
||||
Some(Subcommand::ValidationWorker(cmd)) => {
|
||||
let _ = sc_cli::init_logger(
|
||||
sc_cli::InitLoggerParams {
|
||||
pattern: "".into(),
|
||||
tracing_receiver: Default::default(),
|
||||
tracing_targets: None,
|
||||
disable_log_reloading: false,
|
||||
disable_log_color: true,
|
||||
},
|
||||
);
|
||||
let mut builder = sc_cli::GlobalLoggerBuilder::new("");
|
||||
builder.with_colors(false);
|
||||
let _ = builder.init();
|
||||
|
||||
if cfg!(feature = "browser") || cfg!(target_os = "android") {
|
||||
Err(sc_cli::Error::Input("Cannot run validation worker in browser".into()).into())
|
||||
|
||||
Reference in New Issue
Block a user