mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-06 02:41:07 +00:00
Fix possible corner case in revalidation (#5172)
* remove all from members * add test
This commit is contained in:
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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user