Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(validator): modified validator timelock to allow more than 1 validator #211

Merged
merged 4 commits into from
Feb 21, 2024

Conversation

koloz193
Copy link
Contributor

What ❔

Modified validator timelock to allow more than 1 validator

Why ❔

For 4844 we want to be able to use 2 different addresses:

  • 1 for commitBatches
  • 1 for prove/execute batches
    The separation is mainly due to the fact that normal and blob transactions have separate mem pools and restrictions on when an address can have a transaction in each of the respective pools

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

Copy link
Collaborator

@StanislavBreadless StanislavBreadless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a very small nit


/// @dev Sets an address as a validator.
function addValidator(address _newValidator) external onlyOwner {
validators[_newValidator] = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: it may be worth to double check whether the validator has not been set already (in case of adding a new validator) / has not been removed already (in case of deletion)

@koloz193 koloz193 merged commit 340884d into dev Feb 21, 2024
17 checks passed
@koloz193 koloz193 deleted the multi-address-validator branch February 21, 2024 15:46
@koloz193 koloz193 restored the multi-address-validator branch February 21, 2024 18:39
@vladbochok vladbochok deleted the multi-address-validator branch April 14, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants