Skip to content

tests/fuzzers/les: add fuzzer for les server handler#22173

Closed
zsfelfoldi wants to merge 7 commits intoethereum:masterfrom
zsfelfoldi:handler-fuzzer
Closed

tests/fuzzers/les: add fuzzer for les server handler#22173
zsfelfoldi wants to merge 7 commits intoethereum:masterfrom
zsfelfoldi:handler-fuzzer

Conversation

@zsfelfoldi
Copy link
Copy Markdown
Contributor

This PR refactors the LES server handler in order to make fuzzer testing possible and implements the fuzzer.
Note: it is based on top of #22154 which is WIP and removes package dependencies in order to make fuzzing of package les possible. Alternatively #22161 could solve the same problem. Finishing and merging both of these two PRs might make sense but either one alone should make LES fuzzing possible.

Comment thread les/client.go

// New creates an instance of the light client.
func New(stack *node.Node, config *eth.Config) (*LightEthereum, error) {
func New(stack *node.Node, config *eth.Config, mkEngineFn consensusCreatorFn) (*LightEthereum, error) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unnecessary I think? We can move this function into the consensus package so that it can be shared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants