Skip to content

Commit

Permalink
Update server/selection_algorithm.go
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Elias <[email protected]>
  • Loading branch information
ad-astra-video and victorges authored Sep 23, 2024
1 parent aa135b3 commit 93ff8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/selection_algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (sa ProbabilitySelectionAlgorithm) filterByPerfScore(ctx context.Context, a
}

func (sa ProbabilitySelectionAlgorithm) filterByMaxPrice(ctx context.Context, addrs []ethcommon.Address, maxPrice *big.Rat, prices map[ethcommon.Address]*big.Rat) []ethcommon.Address {
if maxPrice.Num().Int64() == 0 || len(prices) == 0 {
if maxPrice == nil || maxPrice.Sign() == 0 || len(prices) == 0 {
// Max price filter not defined, return all Orchestrators
return addrs
}
Expand Down

0 comments on commit 93ff8c0

Please sign in to comment.