Skip to content

Commit

Permalink
bugfix: correctly handle ingore epoch roles flag (#5390)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstuczyn authored Jan 24, 2025
1 parent 92c8d1b commit 7c85c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/client-core/src/init/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub async fn gateways_for_init<R: Rng>(
// (we don't want instability)
let valid_gateways = gateways
.iter()
.filter(|g| !ignore_epoch_roles && !g.supported_roles.mixnode)
.filter(|g| ignore_epoch_roles || !g.supported_roles.mixnode)
.filter(|g| g.performance.round_to_integer() >= minimum_performance)
.filter_map(|gateway| gateway.try_into().ok())
.collect::<Vec<_>>();
Expand Down

0 comments on commit 7c85c1a

Please sign in to comment.