Skip to content

Commit 2fe96ae

Browse files
committed
Fix lint
1 parent 0c64fec commit 2fe96ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subtree_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,9 +1220,9 @@ func TestGetMerkleProofOddLeaves(t *testing.T) {
12201220
require.NoError(t, err)
12211221

12221222
// Add 541 nodes (odd number)
1223-
for i := 0; i < 541; i++ {
1223+
for i := uint64(0); i < uint64(541); i++ {
12241224
hash, _ := chainhash.NewHashFromStr("0000000000000000000000000000000000000000000000000000000000000001")
1225-
err = tree.AddNode(*hash, uint64(i), uint64(i*100))
1225+
err = tree.AddNode(*hash, i, i*100)
12261226
require.NoError(t, err)
12271227
}
12281228

@@ -1233,7 +1233,7 @@ func TestGetMerkleProofOddLeaves(t *testing.T) {
12331233
require.NotNil(t, proof)
12341234

12351235
// Should not panic and should return a valid proof
1236-
require.Greater(t, len(proof), 0)
1236+
require.NotEmptyf(t, proof, "Merkle proof should not be empty")
12371237

12381238
// The first hash in the proof should be the duplicate of the last node
12391239
// since 540 is even and has no sibling at index 541

0 commit comments

Comments
 (0)