Fix possible corner case in revalidation (#5172)

* remove all from members

* add test
This commit is contained in:
Nikolay Volf authored and GitHub committed 2020-03-06 21:24:39 +01:00
1 parent 615dc00702
commit 4aac39c667
2 files changed
+34 -1

No files matched your search

@@ -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
}