Changes tries build cache (#2933)

* changes tries build cache

added CT build cache test

* fix lines width

* fixed some grumbles

* clear cache when: digests disabled, top-level or skewed digest is built

* cached_changed_keys -> with_cached_changed_keys
This commit is contained in:
Svyatoslav Nikolsky
2019-09-05 08:27:04 +03:00
committed by GitHub
parent 932e51ffff
commit 551a9e6bcb
16 changed files with 620 additions and 66 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ impl<H, N> Externalities<H> for TestExternalities<H, N>
Some(&self.changes_trie_storage),
&self.overlay,
parent,
)?.map(|(_, root)| root))
)?.map(|(_, root, _)| root))
}
fn offchain(&mut self) -> Option<&mut dyn offchain::Externalities> {