We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Descendants
1 parent 0a77d88 commit 6c982ddCopy full SHA for 6c982dd
internal/trie/node/copy.go
@@ -10,7 +10,7 @@ func (b *Branch) Copy(copyChildren bool) Node {
10
cpy := &Branch{
11
Dirty: b.Dirty,
12
Generation: b.Generation,
13
- Descendants: b.Descendants,
+ Descendants: b.GetDescendants(),
14
}
15
16
if copyChildren {
lib/trie/trie_endtoend_test.go
@@ -1132,7 +1132,7 @@ func countNodesFromStats(root Node) (nodesCount uint32) {
1132
} else if root.Type() == node.LeafType {
1133
return 1
1134
1135
- return 1 + root.(*node.Branch).Descendants
+ return 1 + root.(*node.Branch).GetDescendants()
1136
1137
1138
func testDescendants(t *testing.T, root Node) {
0 commit comments