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 #376

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

evlekht
Copy link
Member

@evlekht evlekht commented Aug 2, 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-15 dev
#351

@evlekht evlekht force-pushed the dev-c0/admin-roles branch from 1fe6a9d to ba108e7 Compare August 2, 2024 09:35
@evlekht evlekht changed the title Dev c0/admin roles [PVM] Add validator admin role, reduce root admin permissions Aug 2, 2024
@evlekht evlekht force-pushed the dev-c0/admin-roles branch from ba108e7 to 75c8ea8 Compare August 2, 2024 16:09
mo-c4t
mo-c4t previously approved these changes Aug 6, 2024
@evlekht evlekht force-pushed the dev-c0/admin-roles branch from 75c8ea8 to ec0c503 Compare August 7, 2024 13:05
@evlekht evlekht changed the base branch from dev-c0/base to dev August 7, 2024 13:05
@evlekht evlekht dismissed mo-c4t’s stale review August 7, 2024 13:05

The base branch was changed.

@evlekht evlekht marked this pull request as ready for review August 7, 2024 13:05
@evlekht evlekht merged commit b14ad74 into dev Aug 7, 2024
@evlekht evlekht deleted the dev-c0/admin-roles branch August 7, 2024 13:06
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.

2 participants