Skip to content

Commit

Permalink
Merge branch 'blacklist-failing-solvers' into notify-banned-solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
squadgazzz committed Jan 31, 2025
2 parents 3c591e4 + 6787d34 commit 85a3d86
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ impl Validator {
.into_iter()
// Check if solver accepted this feature. This should be removed once a CIP is
// approved.
.filter(|solver| self_.0.drivers_by_address.contains_key(solver))
.filter_map(|solver| {
self_
.0
.drivers_by_address
.get(&solver)
.filter(|driver| driver.accepts_unsettled_blocking).map(|_| solver)
})
.for_each(|solver| {
self_.0.banned_solvers.insert(solver, now);
});
Expand Down

0 comments on commit 85a3d86

Please sign in to comment.