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(catalyst-toolbox): Count missing voting power | NPG-0000 #541

Merged
merged 8 commits into from
Aug 29, 2023

Conversation

stevenj
Copy link
Collaborator

@stevenj stevenj commented Aug 29, 2023

Description

Catalyst toolbox snapshot and sve-snapshot commands were both (with different code paths) excluding individual registrations with < threshold ada voting power.

This meant that multiple registrations to the same voting key would have missing voting power if any of those individual registrations were < the threshold. This change does that check only on the cumulative total of all voting power.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

The utilities/snapshot-check/snapshot-check.py was sued to validate the voting power is properly being calculated.
The utilities/snapshot-check/compar_snapshot.py was used to compare a full processed snapshot with an SVE one.

Old snapshots fail to validate, new ones after these changes validate correctly.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@stevenj stevenj changed the title fix(catalyst-toolbox): Count missing voting power fix(catalyst-toolbox): Count missing voting power | NPG-0000 Aug 29, 2023
@stevenj stevenj enabled auto-merge (squash) August 29, 2023 09:32
minikin
minikin previously approved these changes Aug 29, 2023
Copy link
Collaborator

@minikin minikin left a comment

Choose a reason for hiding this comment

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

LGTM

@stevenj stevenj merged commit cb2839a into main Aug 29, 2023
27 checks passed
@stevenj stevenj deleted the bug/snapshot-processing-excluding-valid-voting-power branch August 29, 2023 11: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.

3 participants