Skip to content
Unverified Commit b031fdc9 authored by Bastian Köcher's avatar Bastian Köcher
Browse files

validate-block: Fix `TrieCache` implementation

The trie cache implementation was ignoring the `storage_root` when
setting up the value cache. The problem with this is that the value
cache works using `storage_keys` and these keys are not unique across
different tries. A block can actually have different tries (main trie
and multiple child tries). This pull request fixes the issue by not
ignoring the `storage_root` and returning an unique `value_cache` per
`storage_root`. It also adds a test for the seen bug and improves
documentation that this doesn't happen again.
parent 8ebb5c33
Pipeline #410874 failed with stages
in 13 minutes and 49 seconds
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