ChainSafe / ChainSafe/gossamer
Child tries deltas are not used
Open
- Dominant language
- Go
- Stars
- 454
- Forks
- 144
- PR merge metrics
- No merged PRs in 30d
Description
## Task summary
Deleted (and soon inserted) node hashes of child tries are not used for pruning.
A solution would be to inject the deltas from the parent trie (map or struct pointer) to the child tries, so they share the same tracking. This is especially important since for pruning, we should track deltas chronologically (i.e. re-inserted nodes) and they are all stored in the same database.
Contributor guide
Assessment
This issue has not been assessed yet.