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.
1 parent be70403 commit 97049e8Copy full SHA for 97049e8
trie/proof_test.go
@@ -451,7 +451,7 @@ func TestBadRangeProof(t *testing.T) {
451
// with the first/last second element(since small values are
452
// embedded in the parent). Avoid this case.
453
index = mrand.Intn(end - start)
454
- if (index == end-start-1 || index == 0) && end <= 100 {
+ if (index == 0 && start < 100) || (index == end-start-1 && end <= 100) {
455
continue
456
}
457
keys = append(keys[:index], keys[index+1:]...)
0 commit comments