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

Restrict Owner usage after a Subnet manager is set #3147

Merged
merged 39 commits into from
Aug 19, 2024

Conversation

dhrubabasu
Copy link
Contributor

@dhrubabasu dhrubabasu commented Jun 25, 2024

Why this should be merged

ACP-77 calls for disabling all transactions that uses SubnetAuth other than TransferSubnetOwnershipTx when a Subnet sets a manager.

How this works

There are 5 transactions that have SubnetAuth as a field:

  • AddSubnetValidatorTx
  • CreateChainTx
  • RemoveSubnetValidatorTx
  • TransferSubnetOwnershipTx
  • TransformSubnetTx

This PR considers the first three invalid if a Subnet has a manager that is set.

The execution of TransformSubnetTx does not need to be modified as it is already disabled post-Etna: #3152

How this was tested

added UTs

@dhrubabasu dhrubabasu added this to the v1.11.9 milestone Jun 25, 2024
@dhrubabasu dhrubabasu self-assigned this Jun 25, 2024
@StephenButtolph StephenButtolph modified the milestones: v1.11.9, v1.11.10 Jul 1, 2024
@StephenButtolph StephenButtolph modified the milestones: v1.11.10, v1.11.11 Jul 25, 2024
Base automatically changed from store-warp-addressed-call-pair to master August 2, 2024 01:37
@dhrubabasu dhrubabasu changed the title [vms/platformvm] Disable subnet staking txs once manager is set Restrict Owner usage after a Subnet manager is set Aug 12, 2024
Copy link
Contributor

@StephenButtolph StephenButtolph left a comment

Choose a reason for hiding this comment

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

lgtm

vms/platformvm/txs/executor/staker_tx_verification.go Outdated Show resolved Hide resolved
@StephenButtolph StephenButtolph added this pull request to the merge queue Aug 19, 2024
Merged via the queue into master with commit ac87871 Aug 19, 2024
21 checks passed
@StephenButtolph StephenButtolph deleted the disable-permissioned-subnet-txs-post-manager branch August 19, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants