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

feat!: Add support for priority validators #2101

Merged
merged 41 commits into from
Oct 25, 2024
Merged

feat!: Add support for priority validators #2101

merged 41 commits into from
Oct 25, 2024

Conversation

p-offtermatt
Copy link
Contributor

Description

Closes: #2030


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • Confirmed the correct type prefix in the PR title
  • Confirmed all author checklist items have been addressed
  • Confirmed that this PR does not change production code

@github-actions github-actions bot added the C:x/provider Assigned automatically by the PR labeler label Jul 26, 2024
@github-actions github-actions bot added the C:Testing Assigned automatically by the PR labeler label Oct 15, 2024
@github-actions github-actions bot added C:Docs Assigned automatically by the PR labeler C:ADR Assigned automatically by the PR labeler labels Oct 16, 2024
Copy link
Contributor Author

@p-offtermatt p-offtermatt left a comment

Choose a reason for hiding this comment

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

This looks great so far. I left a few comments

proto/interchain_security/ccv/provider/v1/provider.proto Outdated Show resolved Hide resolved
tests/e2e/steps_permissionless_ics.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/grpc_query.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping_test.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping_test.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping_test.go Show resolved Hide resolved
x/ccv/provider/migrations/v8/migrations.go Outdated Show resolved Hide resolved
kirdatatjana and others added 10 commits October 16, 2024 09:56
…rs.md

Co-authored-by: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com>
Co-authored-by: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com>
Co-authored-by: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com>
Co-authored-by: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com>
…dators.md

Co-authored-by: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com>
@kirdatatjana kirdatatjana marked this pull request as ready for review October 17, 2024 13:48
@kirdatatjana kirdatatjana requested a review from a team as a code owner October 17, 2024 13:48
x/ccv/provider/keeper/power_shaping.go Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping.go Outdated Show resolved Hide resolved
@mpoke mpoke changed the title feat: Add support for priority validators feat!: Add support for priority validators Oct 25, 2024
x/ccv/provider/client/cli/tx.go Outdated Show resolved Hide resolved
x/ccv/provider/client/cli/tx.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/grpc_query_test.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping_test.go Show resolved Hide resolved
Copy link
Contributor

@bermuell bermuell left a comment

Choose a reason for hiding this comment

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

pls address comments

Copy link
Contributor

@mpoke mpoke left a comment

Choose a reason for hiding this comment

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

Great work @p-offtermatt and @kirdatatjana. See my comments below.

docs/docs/adrs/adr-019-permissionless-ics.md Outdated Show resolved Hide resolved
docs/docs/build/modules/02-provider.md Show resolved Hide resolved
x/ccv/provider/client/cli/tx.go Outdated Show resolved Hide resolved
x/ccv/provider/client/cli/tx.go Show resolved Hide resolved
@@ -43,6 +43,7 @@ type ConsumerAdditionProposalJSON struct {
Denylist []string `json:"denylist"`
MinStake uint64 `json:"min_stake"`
AllowInactiveVals bool `json:"allow_inactive_vals"`
Prioritylist []string `json:"prioritylist"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not update legacy proposals as we no longer need them. Actually, why do we even have this file?

Copy link
Contributor

Choose a reason for hiding this comment

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

Priority list is now removed from legacy_proposals.go.

Copy link
Contributor

Choose a reason for hiding this comment

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

@MSalopek do you know why do we still need this file? cc @bermuell

Copy link
Contributor

Choose a reason for hiding this comment

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

My mistake, the priority list is needed in legacy proposal for e2e test.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we still legacy props on our e2e tests? Can we get rid of these? Not something we need to do in this PR though.

Copy link
Contributor

Choose a reason for hiding this comment

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

Don't remove them because you'll break governance on gaia. They have to exist so old Txs can be displayed and handled properly. Otherwise you will not be able to fetch an old block or check an old gov proposal because the gov type is missing.

Please don't remove it.

x/ccv/provider/client/legacy_proposals.go Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping.go Outdated Show resolved Hide resolved
x/ccv/provider/keeper/power_shaping.go Show resolved Hide resolved
@mpoke mpoke added this pull request to the merge queue Oct 25, 2024
Merged via the queue into main with commit dd09294 Oct 25, 2024
21 checks passed
@mpoke mpoke deleted the ph/priority-validators branch October 25, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:ADR Assigned automatically by the PR labeler C:CI Assigned automatically by the PR labeler C:Docs Assigned automatically by the PR labeler C:Testing Assigned automatically by the PR labeler C:x/provider Assigned automatically by the PR labeler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add priority validators list to the power shaping params
6 participants