Skip to content

Conversation

@Himess
Copy link

@Himess Himess commented Dec 3, 2025

Summary

  • Moves revealed paths tracking from separate collections in SparseStateTrie into the SerialSparseTrie struct itself
  • Adds revealed path methods to SparseTrieInterface trait for unified access
  • Simplifies code by removing redundant tracking in StorageTries

Closes #14378

  Moves the revealed paths tracking from separate collections in
  SparseStateTrie into the SerialSparseTrie struct itself.

  Changes:
  - Add revealed: HashSet<Nibbles> field to SerialSparseTrie
  - Add revealed path methods to SparseTrieInterface trait:
    - is_path_revealed: check if a path is revealed
    - mark_path_revealed: mark a path as revealed
    - revealed_paths: get reference to revealed paths
    - revealed_paths_mut: get mutable reference to revealed paths
  - Update reveal_node to automatically track and skip revealed paths
  - Remove revealed_account_paths from SparseStateTrie
  - Remove revealed_paths and cleared_revealed_paths from StorageTries
  - Rename filter_map_revealed_nodes to map_proof_nodes
  - Update clear() and wipe() to clear the revealed set

  Closes paradigmxyz#14378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

Keep revealed sparse trie paths on trie level

1 participant