get rid of hidden mutability of Spec (#10904)

* get rid of hidden mutabilityof Spec

* small cleanups

* fixed SpecHardcodedSync printing
This commit is contained in:
Marek Kotewicz
2019-07-30 12:48:54 +02:00
committed by GitHub
parent 12256a1e97
commit 6c7d0fef4e
7 changed files with 183 additions and 177 deletions

View File

@@ -77,7 +77,6 @@ pub fn json_chain_test<H: FnMut(&str, HookType)>(json_data: &[u8], start_stop_ho
let state = From::from(blockchain.pre_state.clone());
spec.set_genesis_state(state).expect("Failed to overwrite genesis state");
spec.overwrite_genesis_params(genesis);
assert!(spec.is_state_root_valid());
spec
};