mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 10:07:56 +00:00
Rework the trie cache (#12982)
* Rework the trie cache * Align `state-machine` tests * Bump `schnellru` to 0.1.1 * Fix off-by-one * Align to review comments * Bump `ahash` to 0.8.2 * Bump `schnellru` to 0.2.0 * Bump `schnellru` to 0.2.1 * Remove unnecessary bound * Remove unnecessary loop when calculating maximum memory usage * Remove unnecessary `mut`s
This commit is contained in:
@@ -110,7 +110,7 @@ impl<B: BlockT> BenchmarkingState<B> {
|
||||
proof_recorder_root: Cell::new(root),
|
||||
enable_tracking,
|
||||
// Enable the cache, but do not sync anything to the shared state.
|
||||
shared_trie_cache: SharedTrieCache::new(CacheSize::Maximum(0)),
|
||||
shared_trie_cache: SharedTrieCache::new(CacheSize::new(0)),
|
||||
};
|
||||
|
||||
state.add_whitelist_to_tracker();
|
||||
|
||||
Reference in New Issue
Block a user