Conversation
The bundle was executed in the parent block's own environment and the inclusion range was checked against the parent number, so the standard request with inclusion.block = latest + 1 failed with "invalid inclusion" and the profit was measured against the coinbase before overrides. Derive the next block env like eth_simulateV1 does, apply overrides first and check inclusion against the simulated block, matching flashbots' sbundle_api.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mev_simBundleexecuted the bundle in the parent block's own environment and checked the inclusion range against the parent number, so the standard request withinclusion.block = latest + 1failed withinvalid inclusion, andcoinbase/baseFeewere read before the overrides were applied. The reference implementation (flashbotssbundle_api.go) simulates in the block that builds onparentBlock(number + 1, timestamp + 12, next base fee, then overrides) and checks inclusion against that block.Derives the next block env the same way
eth_simulateV1does, applies the overrides first and checks inclusion against the simulated block;stateBlockstill reports the parent.