Fix condition (#424)

Closes #419
This commit is contained in:
Gavin Wood
2021-04-30 15:17:21 +02:00
committed by GitHub
parent 7d315cf9ab
commit 42c18b8cb5
+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;