flashbots / mev-geth

Go implementation of MEV-Auction for Ethereum
GNU Lesser General Public License v3.0
786 stars 197 forks source link

Discard reverting megabundle blocks and head change interrupted blocks #123

Closed Ruteri closed 2 years ago

Ruteri commented 2 years ago

Bug introduced during rebase over v1.10.16, which stopped discarding interrupted blocks, since we were using the same discard logic for discarding blocks with reverting megabundles. This PR reintroduces both discards.

On-chain this is fortunately very rare, since it requires both a reorg and incomplete megabundle block to have been the most profitable block (5 blocks in march as far as I can tell).