File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,6 @@ async def _update_exit_signatures(
114
114
outdated_indexes : list [int ],
115
115
) -> None :
116
116
"""Fetches update signature requests from oracles."""
117
- exit_rotation_batch_limit = oracles .validators_exit_rotation_batch_limit
118
- outdated_indexes = outdated_indexes [:exit_rotation_batch_limit ]
119
-
120
117
logger .info ('Starting exit signature rotation for %d validators' , len (outdated_indexes ))
121
118
# pylint: disable=duplicate-code
122
119
validators = await get_validator_public_keys (outdated_indexes )
@@ -184,8 +181,12 @@ async def _get_oracles_request(
184
181
deadline = get_current_timestamp () + oracles .signature_validity_period ,
185
182
)
186
183
failed_indexes = []
184
+ exit_rotation_batch_limit = oracles .validators_exit_rotation_batch_limit
187
185
188
186
for validator_index , public_key in validators .items ():
187
+ if len (request .public_keys ) >= exit_rotation_batch_limit :
188
+ break
189
+
189
190
if len (keystores ) > 0 and public_key in keystores :
190
191
shards = get_exit_signature_shards (
191
192
validator_index = validator_index ,
You can’t perform that action at this time.
0 commit comments