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

Fix subnet validator set public key initialization #1833

Merged

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Resolves performance regression observed by the Dexalot subnet.

How this works

Rather than erroring during the generation of a subnet's validator set, the public key should be set to nil.

How this was tested

Added an explicit regression test and improved the property testing to cover this case as well.

@StephenButtolph StephenButtolph added bug Something isn't working vm This involves virtual machines incident response labels Aug 9, 2023
@StephenButtolph StephenButtolph added this to the v1.10.8 milestone Aug 9, 2023
@StephenButtolph StephenButtolph changed the base branch from master to dev August 9, 2023 21:35
@@ -2101,6 +2101,129 @@ func TestSubnetValidatorPopulatedToEmptyBLSKeyDiff(t *testing.T) {
}
}

func TestSubnetValidatorSetAfterPrimaryNetworkValidatorRemoval(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

vms/platformvm/validators/manager.go Show resolved Hide resolved
@StephenButtolph StephenButtolph merged commit 0d617fd into dev Aug 9, 2023
14 checks passed
@StephenButtolph StephenButtolph deleted the fix-subnet-validator-set-public-key-initialization branch August 9, 2023 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working incident response vm This involves virtual machines
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants