eth/protocols/eth: update fuzzer

This commit is contained in:
MariusVanDerWijden 2025-04-23 12:06:16 +02:00 committed by Felix Lange
parent 230e66074a
commit b7fdaf275f

View file

@ -613,10 +613,10 @@ func setup() (*testBackend, *testPeer) {
} }
func FuzzEthProtocolHandlers(f *testing.F) { func FuzzEthProtocolHandlers(f *testing.F) {
handlers := eth68 handlers := eth69
backend, peer := setup() backend, peer := setup()
f.Fuzz(func(t *testing.T, code byte, msg []byte) { f.Fuzz(func(t *testing.T, code byte, msg []byte) {
handler := handlers[uint64(code)%protocolLengths[ETH68]] handler := handlers[uint64(code)%protocolLengths[ETH69]]
if handler == nil { if handler == nil {
return return
} }