Commit 62e5f47
committed
fix: implement InsertValuesAtStem for HashedNode in Binary Trie
This fixes the "insertValuesAtStem not implemented for hashed node" error
that was blocking contract creation tests in Binary Trie mode.
The implementation follows the pattern established in InternalNode.GetValuesAtStem:
1. Generate the path for the node's position in the tree
2. Resolve the hashed node to get actual node data from the database
3. Deserialize the resolved data into a concrete node type
4. Call InsertValuesAtStem on the resolved node
This allows the Binary Trie to handle cases where parts of the tree are not
in memory but need to be modified during state transitions, maintaining the
lazy-loading design.1 parent b5c20e1 commit 62e5f47
1 file changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
51 | 70 | | |
52 | 71 | | |
53 | 72 | | |
| |||
0 commit comments