core, eth, ethdb, trie: simplify range proofs
This commit is contained in:
@ -170,18 +170,11 @@ func (f *fuzzer) fuzz() int {
|
||||
}
|
||||
ok = 1
|
||||
//nodes, subtrie
|
||||
nodes, hasMore, err := trie.VerifyRangeProof(tr.Hash(), first, last, keys, vals, proof)
|
||||
hasMore, err := trie.VerifyRangeProof(tr.Hash(), first, last, keys, vals, proof)
|
||||
if err != nil {
|
||||
if nodes != nil {
|
||||
panic("err != nil && nodes != nil")
|
||||
}
|
||||
if hasMore {
|
||||
panic("err != nil && hasMore == true")
|
||||
}
|
||||
} else {
|
||||
if nodes == nil {
|
||||
panic("err == nil && nodes == nil")
|
||||
}
|
||||
}
|
||||
}
|
||||
return ok
|
||||
|
Reference in New Issue
Block a user