-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
There are few places in the code where the list of validators is iterated:
and
in these methods excessive number of validators could lead to "out of gas" issue.
Consider to do the following:
- perform a research and update the documentation with maximum number of validators which will not lead to the transaction interruption;
- update
setValidatorCountto limit the number of bridge validator that can be added; - update tests that will confirm that the number of invocations of
_addValidatorthat corresponds to the recommended maximum of validators does not exceed some default gas limit (e.g. gas limit for the Ethereum Mainnet) - update tests for the
initializemethods in bothRewardableValidatorsandBridgeValidatorsthat will confirm that passing the validators list with size corresponding to the recommended maximum of validators does not exceed the default gas limit.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request