Files
pezkuwi-subxt/substrate/primitives/state-machine/src
Bastian Köcher 8fcc6f2e9f sp_trie::Recorder: Fix recording the same key for different tries (#12636)
With `StateVersion::V1` values over a certain size are not inlined and being put into the backend
with their own hash. When accessing a value in the trie with a recorder, we check if the value is maybe already
recorded and thus, we can check the cache. To check if a value is already recorded, we use the key
of the value to differentiate them. The problem is when there are multiple tries, like multiple
child tries that all have different values under the same key. Before this pull request we didn't
have differentiated for which trie we already had recorded a (key, value) pair. This is now done by also taking
the storage root into account in the recorder to differentiate the different (key, value) pair in
the tries.
2022-11-08 10:04:55 +01:00
..
2022-01-03 09:22:14 +01:00
2022-01-03 09:22:14 +01:00