mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 21:17:56 +00:00
Fix possible corner case in revalidation (#5172)
* remove all from members * add test
This commit is contained in:
@@ -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