Fix possible corner case in revalidation (#5172)

* remove all from members

* add test
This commit is contained in:
Nikolay Volf
2020-03-06 23:24:39 +03:00
committed by GitHub
parent 615dc00702
commit 4aac39c667
2 changed files with 34 additions and 1 deletions
@@ -151,7 +151,6 @@ impl<Api: ChainApi> RevalidationWorker<Api> {
} else {
for xt in &to_queue {
extrinsics.remove(xt);
self.members.remove(xt);
}
}
left -= to_queue.len();
@@ -163,6 +162,10 @@ impl<Api: ChainApi> RevalidationWorker<Api> {
}
}
for hash in queued_exts.iter() {
self.members.remove(hash);
}
queued_exts
}