Skip to content
New issue

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

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

Already on GitHub? # to your account

Discrepancies in PVG across bundlers causes UserOps to be rejected in the Mempool #61

Open
ch4r10t33r opened this issue Mar 28, 2024 · 1 comment

Comments

@ch4r10t33r
Copy link

Although most bundlers adhere to the reference implementation for determining the Pre-Verification Gas (PVG) of a bundle (https://github.com/eth-infinitism/bundler/blob/main/packages/sdk/src/calcPreVerificationGas.ts), discrepancies still arise across different bundler implementations.

This variation in PVG leads to instances where UserOps deemed valid by one bundle are rejected by another.

For instance, a UserOp processed by Skandha yields a PVG of 44668, while 44848 estimates the same operation at 44848, resulting in the rejection of the UserOp from the mempool.

To mitigate this issue, it may be necessary to standardize PVG values across bundler implementations or at least reach consensus on minimum PVG thresholds for a bundle of X to prevent fragmentation of the mempool.

We need a test for this added to the p2p spec test suite as well.

@shahafn
Copy link
Collaborator

shahafn commented Aug 28, 2024

@ch4r10t33r we're currently working on a standardized way to calculate gas fields for the bundlers. It's a complex issue, and we'll share it over our calls for some feedback.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants