From ba52ed10a3635e2bce6d1ccf0f1ee1b25e1e405b Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Thu, 27 May 2021 23:32:22 +0300 Subject: [PATCH] More sc-service config reexports (#8887) * Reexport ExecutionStrategies and ExecutionStrategy * Reexport more of the network * Reexport the ExecutionStrategy as it's used within ExecutionStrategies --- client/api/src/execution_extensions.rs | 3 ++- client/service/src/config.rs | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/client/api/src/execution_extensions.rs b/client/api/src/execution_extensions.rs index 2f17408b7d7c1..e6a7fb306e77b 100644 --- a/client/api/src/execution_extensions.rs +++ b/client/api/src/execution_extensions.rs @@ -33,7 +33,8 @@ use sp_runtime::{ generic::BlockId, traits, }; -use sp_state_machine::{ExecutionStrategy, ExecutionManager, DefaultHandler}; +use sp_state_machine::{ExecutionManager, DefaultHandler}; +pub use sp_state_machine::ExecutionStrategy; use sp_externalities::Extensions; use parking_lot::RwLock; diff --git a/client/service/src/config.rs b/client/service/src/config.rs index f82a877545e8c..5d8ee89225cb8 100644 --- a/client/service/src/config.rs +++ b/client/service/src/config.rs @@ -23,9 +23,13 @@ pub use sc_client_db::{ KeepBlocks, TransactionStorageMode }; pub use sc_network::Multiaddr; -pub use sc_network::config::{ExtTransport, MultiaddrWithPeerId, NetworkConfiguration, Role, NodeKeyConfig}; +pub use sc_network::config::{ + ExtTransport, MultiaddrWithPeerId, NetworkConfiguration, Role, NodeKeyConfig, + SetConfig, NonDefaultSetConfig, TransportConfig, + RequestResponseConfig, IncomingRequest, OutgoingResponse, +}; pub use sc_executor::WasmExecutionMethod; -use sc_client_api::execution_extensions::ExecutionStrategies; +pub use sc_client_api::execution_extensions::{ExecutionStrategies, ExecutionStrategy}; use std::{io, future::Future, path::{PathBuf, Path}, pin::Pin, net::SocketAddr, sync::Arc}; pub use sc_transaction_pool::txpool::Options as TransactionPoolOptions;