Skip to content

fix(l1): make Trie::get_node use compact paths like snap/geth - #7199

Open
NikhilSharmaWe wants to merge 1 commit into
lambdaclass:mainfrom
NikhilSharmaWe:fix/l1-get-node-compact-paths
Open

fix(l1): make Trie::get_node use compact paths like snap/geth#7199
NikhilSharmaWe wants to merge 1 commit into
lambdaclass:mainfrom
NikhilSharmaWe:fix/l1-get-node-compact-paths

Conversation

@NikhilSharmaWe

@NikhilSharmaWe NikhilSharmaWe commented Aug 22, 2026

Copy link
Copy Markdown

Summary

  • Decode Trie::get_node paths as compact only (len > 32 -> empty), matching geth snap.
  • Return the branch node when the path ends on terminator 16.
  • Load extension children at current_path ++ prefix (same as NodeRef::commit).
  • Correct pathset docs; add get_node tests including compact length 32.

Closes #7175.

Test plan

  • cargo test -p ethrex-test --test ethrex_tests get_node_

Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com>
@NikhilSharmaWe
NikhilSharmaWe requested a review from a team as a code owner August 22, 2026 18:43
@github-actions github-actions Bot added the external-contributor PR opened by a contributor outside the team label Aug 22, 2026
@ilitteri
ilitteri requested a review from MegaRedHand August 24, 2026 14:21
@NikhilSharmaWe

Copy link
Copy Markdown
Author

cc @MegaRedHand

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

Labels

external-contributor PR opened by a contributor outside the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trie::get_node returns empty for nodes it should be able to address

1 participant