Fix condition (#424)

Closes #419
This commit is contained in:
Gavin Wood authored and GitHub committed 2021-04-30 15:17:21 +02:00
1 parent 8fda50ee6f
commit cdf8fd94d3
1 file changed
+1 -1
+1 -1
View File
@@ -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;