Fixed spec to json serialization (#809)

* Fixed spec to json serialization

* Fixed tests
This commit is contained in:
Arkadiy Paronyan
2018-09-27 11:22:45 +02:00
committed by Gav Wood
parent d46f2b9c76
commit a50e184402
2 changed files with 2 additions and 5 deletions
+2 -4
View File
@@ -1132,15 +1132,13 @@ mod tests {
#[test]
fn test_leaves_with_complex_block_tree() {
let backend: Arc<Backend<test_client::runtime::Block>> = Arc::new(Backend::new_test(20));
let backend: Arc<Backend<test_client::runtime::Block>> = Arc::new(Backend::new_test(20, 20));
test_client::trait_tests::test_leaves_for_backend(backend);
}
#[test]
fn test_blockchain_query_by_number_gets_canonical() {
let backend: Arc<Backend<test_client::runtime::Block>> = Arc::new(Backend::new_test(20));
let backend: Arc<Backend<test_client::runtime::Block>> = Arc::new(Backend::new_test(20, 20));
test_client::trait_tests::test_blockchain_query_by_number_gets_canonical(backend);
}
}
-1
View File
@@ -147,7 +147,6 @@ impl<G: RuntimeGenesis> ChainSpec<G> {
struct Container<G> {
#[serde(flatten)]
spec: ChainSpecFile,
#[serde(flatten)]
genesis: Genesis<G>,
};