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

[PVM] Add validator admin role, reduce root admin permissions #351

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

evlekht
Copy link
Member

@evlekht evlekht commented Jul 23, 2024

Why this should be merged

This PR improves addr state roles permissions segregation:

  • starting with BerlinPhase, AddressStateRoleAdmin can only modify role bits.
  • new role AddressStateRoleValidatorAdmin can defer/resume node.

There also some renamings to address states.

How this works

In addition to changes in address state permissions logic, there are some changes in tests:

  • integration tests where changed in accordance with permission changes
  • AddressStateTx executor unit-test is changed in order to accommodate new for new possibility: that some role may have different rights in different phases.

How this was tested

With existing unit-tests and integration tests.

Additional references

Original PR based on cortina-19 dev
#337

@evlekht evlekht changed the base branch from evlekht/new-dev-resulting to cortina-15-dev/disable-cairo-proposals July 24, 2024 09:29
@evlekht evlekht force-pushed the cortina-15-dev/disable-cairo-proposals branch from 14756ca to 40b3706 Compare July 24, 2024 10:43
@evlekht evlekht force-pushed the cortina-15-dev/admin-roles branch from 98fd67d to b66d95a Compare July 24, 2024 10:43
Copy link
Member

@havan havan left a comment

Choose a reason for hiding this comment

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

Line 1483 is missing from the original PR

@havan havan added the checked Temporary label for Cortina-15 revert label Jul 24, 2024
@evlekht
Copy link
Member Author

evlekht commented Jul 25, 2024

Line 1483 is missing from the original PR

@havan
which file? >_<

@havan
Copy link
Member

havan commented Jul 25, 2024

@evlekht evlekht force-pushed the cortina-15-dev/admin-roles branch from b66d95a to b99c131 Compare July 25, 2024 12:16
havan
havan previously approved these changes Jul 25, 2024
@evlekht evlekht force-pushed the cortina-15-dev/disable-cairo-proposals branch from 40b3706 to 34eae0c Compare July 25, 2024 13:04
Base automatically changed from cortina-15-dev/disable-cairo-proposals to dev July 25, 2024 13:04
@evlekht evlekht dismissed havan’s stale review July 25, 2024 13:04

The base branch was changed.

@evlekht evlekht force-pushed the cortina-15-dev/admin-roles branch from b99c131 to 2fd3816 Compare July 25, 2024 13:05
@evlekht evlekht marked this pull request as ready for review July 25, 2024 13:05
@evlekht evlekht merged commit 0d9f845 into dev Jul 25, 2024
13 of 16 checks passed
@evlekht evlekht deleted the cortina-15-dev/admin-roles branch July 25, 2024 13:06
evlekht added a commit that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
checked Temporary label for Cortina-15 revert
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants