Skip to content
Commit 5b5942ef authored by Sebastian Kunert's avatar Sebastian Kunert Committed by GitHub
Browse files

Use trie-cache for `validate_block` (#2813)



* Simple cache

* Fix node insertion

* Switch to hashbrown hashmap

* Remove unused phantomdata

* Return error when fetch_node fails

* Remove cargo patches

* Move trie cache to extra module

* Add ReadOnceBackend

* Add readonlybackend

* Improve naming and get_or_insert

* Stylistic improvements

* Improve naming, add docs

* Revert unwanted changes

* Remove unused dependencies

* Improve docs

* Use RefCell

* lockfile

* Remove ReadOnceBackend

* Apply suggestions from code review

Co-authored-by: default avatarBastian Köcher <[email protected]>

* Code review

* Do not use value cache when calculating storage roots

* Apply suggestions from code review

Co-authored-by: default avatarDavide Galassi <[email protected]>

* Remove hash-db dep

* Update pallets/parachain-system/src/validate_block/trie_cache.rs

Co-authored-by: default avatarAnton <[email protected]>

---------

Co-authored-by: default avatarBastian Köcher <[email protected]>
Co-authored-by: default avatarDavide Galassi <[email protected]>
Co-authored-by: default avatarAnton <[email protected]>
parent 18340b30
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment