tests/fuzzers: remove unused field from kv struct in rangeproof fuzzer (#33447)
Some checks are pending
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Linux Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run

Removes the unused `t bool` field from the `kv` struct in the rangeproof fuzzer.
This commit is contained in:
0xFloki 2025-12-19 02:13:00 +01:00 committed by GitHub
parent bd77b77ede
commit 5dfcffcf3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,6 @@ import (
type kv struct {
k, v []byte
t bool
}
type fuzzer struct {
@ -62,8 +61,8 @@ func (f *fuzzer) randomTrie(n int) (*trie.Trie, map[string]*kv) {
size := f.readInt()
// Fill it with some fluff
for i := byte(0); i < byte(size); i++ {
value := &kv{common.LeftPadBytes([]byte{i}, 32), []byte{i}, false}
value2 := &kv{common.LeftPadBytes([]byte{i + 10}, 32), []byte{i}, false}
value := &kv{common.LeftPadBytes([]byte{i}, 32), []byte{i}}
value2 := &kv{common.LeftPadBytes([]byte{i + 10}, 32), []byte{i}}
trie.MustUpdate(value.k, value.v)
trie.MustUpdate(value2.k, value2.v)
vals[string(value.k)] = value
@ -76,7 +75,7 @@ func (f *fuzzer) randomTrie(n int) (*trie.Trie, map[string]*kv) {
for i := 0; i < n; i++ {
k := f.randBytes(32)
v := f.randBytes(20)
value := &kv{k, v, false}
value := &kv{k, v}
trie.MustUpdate(k, v)
vals[string(k)] = value
if f.exhausted {