mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
relay-chain-interface: Do not depend on polkadot-service (#2287)
This commit is contained in:
@@ -252,7 +252,8 @@ async fn build_relay_chain_interface(
|
||||
polkadot_service::IsCollator::Yes(CollatorPair::generate().0)
|
||||
},
|
||||
None,
|
||||
)?;
|
||||
)
|
||||
.map_err(|e| RelayChainError::Application(Box::new(e) as Box<_>))?;
|
||||
|
||||
task_manager.add_child(relay_chain_full_node.task_manager);
|
||||
tracing::info!("Using inprocess node.");
|
||||
@@ -309,10 +310,7 @@ where
|
||||
&mut task_manager,
|
||||
)
|
||||
.await
|
||||
.map_err(|e| match e {
|
||||
RelayChainError::ServiceError(polkadot_service::Error::Sub(x)) => x,
|
||||
s => s.to_string().into(),
|
||||
})?;
|
||||
.map_err(|e| sc_service::Error::Application(Box::new(e) as Box<_>))?;
|
||||
|
||||
let import_queue_service = params.import_queue.service();
|
||||
let (network, system_rpc_tx, tx_handler_controller, start_network, sync_service) =
|
||||
|
||||
Reference in New Issue
Block a user