Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from

Conversation

zsfelfoldi
Copy link
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.

// 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
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