Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Easy] Only void solutions that fail due to reverts (#2154)
# Description Once a solver is done merging and post-processing solutions, we continue simulating their best solution candidate upon arrival of new blocks to make sure they are still valid. We void the solution candidate if simulation fails. However, simulation may fail for two reasons: 1. An actual revert 2. Some other error (e.g. HTTP errors or the like) While both are lethal for generating to solution candidate in the first place (as we need to get the gas estimate from the simulation for ranking), only actual reverts should cause a solution to be evicted in the final phase. In case we have a network error, we can just be "optimistic" and assume the outcome of the simulation hasn't changed. # Changes - [ ] Only void solution if simulation error is an actual revert ## How to test CI and 🤞 as we don't have a way to test/mock simulations as part of e2e tests and this issue seems to be too narrow to warrant its own high level test.
- Loading branch information