We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ca1982 commit 5deb623Copy full SHA for 5deb623
modules/validator.py
@@ -220,9 +220,9 @@ def delete_collator(self, args: list):
220
return
221
222
deleted = False
223
- for sh in collators_list['shards']:
+ for sh in collators_list['shards'].copy():
224
if shard_id is None or sh['shard_id'] == shard_id:
225
- for c in sh['collators']:
+ for c in sh['collators'].copy():
226
if c['adnl_id'] == adnl:
227
sh['collators'].remove(c)
228
self.local.add_log(f'Removing collator {adnl} from shard {sh["shard_id"]}', 'info')
0 commit comments