builder
builder copied to clipboard
Does AddMevBundle need to use global pool mutex ?
AddMevBundle
surely needs to lock for atomicity of adding to the bundle pool (pool.mevBundles
), but as far as I can tell it doesn't interact with the rest of the txpool so should be okay to use something like pool.bundleMu.Lock()
? Happy to implement if so 😃
I think it's a good idea!
Keep in mind pool.bundleFetcher
is also accessed, but it can also be covered by the bundles-specific lock.
awesome ty for heads up! will try and get a PR out this coming week