Skip to content
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

Refactor mock builder #6735

Open
wants to merge 8 commits into
base: unstable
Choose a base branch
from

Conversation

pawanjay176
Copy link
Member

@pawanjay176 pawanjay176 commented Dec 19, 2024

Issue Addressed

N/A

Proposed Changes

Refactor the mock builder to extract all builder functions into separate functions.
Also adds a prepare_execution_layer method that prepares the execution layer for payload creation for each slot.

The motivation is to provide a backend for a simple builder service that follows the builder api and produces execution payloads from the local mempool of the connected EL. This allows us to have a faster turnaround for testing changes to the builder api in kurtosis testnets and new fork devnets.
See https://github.com/pawanjay176/rustic-builder/

Additional info

The default parameters to the MockBuilder::new_for_testing produces a MockBuilder with same functionality as before, so the tests in lighthouse should work as before

@pawanjay176 pawanjay176 force-pushed the refactor-mock-builder branch from 80f1d42 to 91c1cf9 Compare January 2, 2025 23:23
@pawanjay176 pawanjay176 force-pushed the refactor-mock-builder branch from c185184 to 8c93b11 Compare January 3, 2025 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant