-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject too gas intensive solutions already in driver competition (#2563)
# Description #2526 started limiting the amount of gas the driver allows per solution. However, the limit was only applied after solutions had been ranked and participated in the autopilot's auction. This lead to large settlements effectively clogging the auction cycle as solvers would continue to win the competition but then fail to submit. This PR filters out such solutions already in the driver internal ranking phase so that too large settlements never participate as solution candidate. # Changes - [x] Make `Gas::new` return an error if gas limit is too high - [x] Introduce a new solver error type that solver engines are notified about. ## How to test Adjusted high gas limit driver test ## Related Issues Fixes #2511 (or rather makes it obsolete)
- Loading branch information
Showing
6 changed files
with
83 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters