Skip to content

Conversation

@phrwlk
Copy link

@phrwlk phrwlk commented Dec 1, 2025

Replace unresolved todo!() with explicit verification errors when inserting an external hash at the exact target path. In
BranchNode::insert() (empty path) and the analogous case in LeafNode::insert() (attempt to set branch value from a hash), return TrieError::Verify instead of allowing override or panicking. This aligns with existing safeguards that allow hashes only in empty child slots and prevents replacing existing nodes/values at the target path.

@phrwlk phrwlk requested a review from a team as a code owner December 1, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant