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(v7)!: validators can have different genesis and self-delegation amounts #1028

Merged

Conversation

fastfadingviolets
Copy link
Contributor

Closes #1027

Summary

Some issues only arise when there's an unequal distribution of stake among validators. This PR allows interchaintest to create chains whose validators have different stake. It does this by changing the ModifyGenesisAmounts function in the chain config so that it takes in an index; the returned values will be used as the genesis and self-delegation amounts for the validator at that specific index.

Copy link

vercel bot commented Mar 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
interchaintest-docs ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 8:43pm

@fastfadingviolets
Copy link
Contributor Author

I'll port this to main if it gets merged :)

ibc/types.go Show resolved Hide resolved
chain/cosmos/cosmos_chain.go Show resolved Hide resolved
this is done by making ModifyGenesisAmounts take in an index parameter;
the returned values will be used for the validator at that index.
@Reecepbcups Reecepbcups changed the title feat [v7] validators can have different genesis and self-delegation amounts feat(v7)!: validators can have different genesis and self-delegation amounts Mar 30, 2024
@Reecepbcups Reecepbcups merged commit 2908114 into strangelove-ventures:v7 Mar 30, 2024
13 checks passed
@Reecepbcups
Copy link
Member

@Mergifyio backport main

Copy link
Contributor

mergify bot commented Mar 30, 2024

backport main

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Mar 30, 2024
…amounts (#1028)

* feat validators can have different genesis and self-delegation amounts

this is done by making ModifyGenesisAmounts take in an index parameter;
the returned values will be used for the validator at that index.

* Add a test for stake distribution in cosmos chains

(cherry picked from commit 2908114)
@Reecepbcups
Copy link
Member

Thanks for your work on this! super appreciated :)

Reecepbcups added a commit that referenced this pull request Mar 30, 2024
…amounts (backport #1028) (#1039)

* feat(v7)!: validators can have different genesis and self-delegation amounts (#1028)

* feat validators can have different genesis and self-delegation amounts

this is done by making ModifyGenesisAmounts take in an index parameter;
the returned values will be used for the validator at that index.

* Add a test for stake distribution in cosmos chains

(cherry picked from commit 2908114)

* fix v7 -> v8 namespace

---------

Co-authored-by: violet <[email protected]>
Co-authored-by: Reece Williams <[email protected]>
@fastfadingviolets fastfadingviolets deleted the feat/stake-per-validator branch April 2, 2024 14:30
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