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

experimental: create new payload from EL error hints #93

Merged
merged 6 commits into from
Jun 26, 2024

Conversation

merklefruit
Copy link
Collaborator

@merklefruit merklefruit commented Jun 25, 2024

Warning

highly cursed code ahead!

We attempt to build a valid execution payload by sending a template to the engine API and infer hints on some stateful components such as state root, gas used and logs bloom.

This approach is highly unstable and not meant to work on a production setup but rather as a proof of concept for a remote block builder without having to either:

  • fork execution client code
  • access the state database directly
  • simulate transactions locally

Implementation

  1. create a payload template with the given transactions and context from the latest execution block
  2. repeatedly call the EngineHinter to produce hints one at a time until the payload is valid
  3. build a locally-signed SignedBuilderBid submission object with a local BLS key

Co-authored-by: thedevbirb <lorenzo@chainbound.io>
@merklefruit merklefruit added the C: bolt-sidecar Component: bolt-sidecar label Jun 25, 2024
merklefruit and others added 2 commits June 26, 2024 15:04
Co-authored-by: thedevbirb <lorenzo@chainbound.io>
Co-authored-by: thedevbirb <lorenzo@chainbound.io>
Co-authored-by: thedevbirb <lorenzo@chainbound.io>
@merklefruit merklefruit marked this pull request as ready for review June 26, 2024 14:18
@merklefruit merklefruit changed the title experimental: get payload from EL error hints experimental: create new payload from EL error hints Jun 26, 2024
merklefruit and others added 2 commits June 26, 2024 16:43
Co-authored-by: thedevbirb <lorenzo@chainbound.io>
Co-authored-by: thedevbirb <lorenzo@chainbound.io>
Base automatically changed from feat/partial-mpt to feat/sidecar/builder-api June 26, 2024 15:09
@mempirate mempirate merged commit 256130a into feat/sidecar/builder-api Jun 26, 2024
@merklefruit merklefruit deleted the experiment/el-error-hints branch July 4, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: bolt-sidecar Component: bolt-sidecar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants