Skip to content

Commit

Permalink
trie: fix gaped range proof test case (ethereum#21484)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and enriquefynn committed Feb 15, 2021
1 parent 7460b40 commit 8388e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trie/proof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func TestBadRangeProof(t *testing.T) {
// with the first/last second element(since small values are
// embedded in the parent). Avoid this case.
index = mrand.Intn(end - start)
if (index == end-start-1 || index == 0) && end <= 100 {
if (index == 0 && start < 100) || (index == end-start-1 && end <= 100) {
continue
}
keys = append(keys[:index], keys[index+1:]...)
Expand Down

0 comments on commit 8388e6a

Please sign in to comment.