Skip to content
Snippets Groups Projects
Commit cdf8fd94 authored by Gavin Wood's avatar Gavin Wood Committed by GitHub
Browse files

Fix condition (#424)

Closes #419
parent 8fda50ee
Branches
No related merge requests found
......@@ -457,7 +457,7 @@ impl<T: Config> Module<T> {
// send more, heavier messages.
let mut shuffle_index = 0;
while shuffle_index < shuffled.len() && max_weight.saturating_sub(weight_used) < threshold_weight {
while shuffle_index < shuffled.len() && max_weight.saturating_sub(weight_used) >= threshold_weight {
let index = shuffled[shuffle_index];
let sender = status[index].0;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment