Update to latest Substrate + Polkadot

This commit is contained in:
Bastian Köcher committed 2019-06-05 20:38:26 +02:00
1 parent 15362b6d9d
commit d8e901300d
7 files changed
+1507 -2379

No files matched your search

+4 -9
View File
@@ -44,13 +44,8 @@ pub type TestClient = client::Client<
Backend, Executor, runtime::Block, runtime::RuntimeApi
>;
/// An extension to the `TestClientBuilder` for building a cumulus test-client.
pub trait TestClientBuilderExt {
fn build_cumulus(self) -> TestClient;
}
/// Test client builder for Cumulus
pub type TestClientBuilder = substrate_test_client::TestClientBuilder<LocalExecutor, Backend>;
impl TestClientBuilderExt for TestClientBuilder {
fn build_cumulus(self) -> TestClient {
self.build_with_native_executor(NativeExecutor::<LocalExecutor>::new(None))
}
}
/// LongestChain type for the test runtime/client.
pub type LongestChain = substrate_test_client::client::LongestChain<Backend, runtime::Block>;