mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
eth/protocols/eth: update fuzzer
This commit is contained in:
parent
230e66074a
commit
b7fdaf275f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue