Skip to content

fix(l1): key ExtensionNode::insert child by own_path ++ prefix - #7198

Open
NikhilSharmaWe wants to merge 1 commit into
lambdaclass:mainfrom
NikhilSharmaWe:fix/l1-extension-insert-child-db-key
Open

fix(l1): key ExtensionNode::insert child by own_path ++ prefix#7198
NikhilSharmaWe wants to merge 1 commit into
lambdaclass:mainfrom
NikhilSharmaWe:fix/l1-extension-insert-child-db-key

Conversation

@NikhilSharmaWe

Copy link
Copy Markdown

Summary

  • Fix ExtensionNode::insert to load the child at own_path ++ prefix, matching NodeRef::commit.
  • Add hashed-child unit tests for the leaf-flag insert arm.

Closes #7174.

Test plan

  • cargo test -p ethrex-trie --lib insert_leaf_flag_prefix
  • cargo test -p ethrex-trie

Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com>
@NikhilSharmaWe
NikhilSharmaWe requested a review from a team as a code owner August 22, 2026 06:00
@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:20
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.

ExtensionNode::insert reads its child at the wrong database key

1 participant