Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 925f170

Browse files
authored
More sc-service config reexports (#8887)
* Reexport ExecutionStrategies and ExecutionStrategy * Reexport more of the network * Reexport the ExecutionStrategy as it's used within ExecutionStrategies
1 parent 27cc30e commit 925f170

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

client/api/src/execution_extensions.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ use sp_runtime::{
3333
generic::BlockId,
3434
traits,
3535
};
36-
use sp_state_machine::{ExecutionStrategy, ExecutionManager, DefaultHandler};
36+
use sp_state_machine::{ExecutionManager, DefaultHandler};
37+
pub use sp_state_machine::ExecutionStrategy;
3738
use sp_externalities::Extensions;
3839
use parking_lot::RwLock;
3940

client/service/src/config.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ pub use sc_client_db::{
2323
KeepBlocks, TransactionStorageMode
2424
};
2525
pub use sc_network::Multiaddr;
26-
pub use sc_network::config::{ExtTransport, MultiaddrWithPeerId, NetworkConfiguration, Role, NodeKeyConfig};
26+
pub use sc_network::config::{
27+
ExtTransport, MultiaddrWithPeerId, NetworkConfiguration, Role, NodeKeyConfig,
28+
SetConfig, NonDefaultSetConfig, TransportConfig,
29+
RequestResponseConfig, IncomingRequest, OutgoingResponse,
30+
};
2731
pub use sc_executor::WasmExecutionMethod;
28-
use sc_client_api::execution_extensions::ExecutionStrategies;
32+
pub use sc_client_api::execution_extensions::{ExecutionStrategies, ExecutionStrategy};
2933

3034
use std::{io, future::Future, path::{PathBuf, Path}, pin::Pin, net::SocketAddr, sync::Arc};
3135
pub use sc_transaction_pool::txpool::Options as TransactionPoolOptions;

0 commit comments

Comments
 (0)