Refactor and test spec block rules (#4670)

* Refactor and test spec block rules

* address review

* Update client/src/block_rules.rs

Co-Authored-By: André Silva <andre.beat@gmail.com>

Co-authored-by: André Silva <andre.beat@gmail.com>
This commit is contained in:
Nikolay VolfandAndré Silva authored and GitHub committed 2020-01-23 05:41:22 -08:00
1 parent 8370b99709
commit 81004eabfd
7 files changed
+225 -41

No files matched your search

@@ -197,8 +197,6 @@ where
)?;
let parent_hash = self.parent_hash;
// The unsafe is required because the consume requires that we drop/consume the inner api
// (what we do here).
let storage_changes = self.api.into_storage_changes(
&state,
changes_trie_state.as_ref(),