alchemyplatform / rundler

An ERC-4337 Bundler in Rust
GNU Lesser General Public License v3.0
268 stars 39 forks source link

[pool] Reject UOs that have a low gas usage ratio when entering the pool #791

Open dancoombs opened 2 weeks ago

dancoombs commented 2 weeks ago

Describe the feature If UOs have a low gas usage ratio it impacts our ability to create large bundles that use a lot of gas onchain. This is essentially a DOS mechanism This causes 2 issues:

  1. Less UOs are able to be bundled, impacting time to mine
  2. Bundler can make less profit

Rundler should have a setting that lets it reject UOs that use less than a configurable percentage of their gas limits. This can be determined upon entering the pool by taking the gas used from the simulation tracer, and adding an additional eth_call to measure the gas used by the call.