fix linter

This commit is contained in:
Guillaume Ballet 2026-01-23 17:38:33 +01:00
parent 1ffd8a1bcb
commit 9c1bb17859
3 changed files with 10 additions and 25 deletions

View file

@ -332,21 +332,6 @@ func compareTreesWithResolver(t *testing.T, original, deserialized BinaryNode, r
return nil return nil
} }
func buildDeepTree(depth, maxDepth int) BinaryNode {
if depth == maxDepth {
// Create a unique hash for this leaf position
var h common.Hash
h[0] = byte(depth)
h[1] = byte(depth >> 8)
return HashedNode(h)
}
return &InternalNode{
depth: depth,
left: buildDeepTree(depth+1, maxDepth),
right: buildDeepTree(depth+1, maxDepth),
}
}
// buildDeepTreeUnique builds a tree where each leaf has a unique hash based on its position // buildDeepTreeUnique builds a tree where each leaf has a unique hash based on its position
func buildDeepTreeUnique(depth, maxDepth, position int) BinaryNode { func buildDeepTreeUnique(depth, maxDepth, position int) BinaryNode {
if depth == maxDepth { if depth == maxDepth {