We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Descendants
1 parent bce2eea commit e0eee15Copy full SHA for e0eee15
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