Skip to content

Commit 97049e8

Browse files
rjl493456442sam bacha
authored andcommitted
trie: fix gaped range proof test case (ethereum#21484)
1 parent be70403 commit 97049e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trie/proof_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func TestBadRangeProof(t *testing.T) {
451451
// with the first/last second element(since small values are
452452
// embedded in the parent). Avoid this case.
453453
index = mrand.Intn(end - start)
454-
if (index == end-start-1 || index == 0) && end <= 100 {
454+
if (index == 0 && start < 100) || (index == end-start-1 && end <= 100) {
455455
continue
456456
}
457457
keys = append(keys[:index], keys[index+1:]...)

0 commit comments

Comments
 (0)