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

Add ValidatorSubgroupRotated event #618

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

JesseAbram
Copy link
Member

add an event to be triggered on session that shows the old subgroup validator groups and the new ones

@JesseAbram JesseAbram requested a review from HCastano February 2, 2024 16:56
Copy link

vercel bot commented Feb 2, 2024

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

Name Status Preview Comments Updated (UTC)
entropy-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 6:42pm

Copy link
Collaborator

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

We should add an entry to the changelog as well

Comment on lines +182 to +186
let mut current_subgroups: Vec<Vec<<T as pallet_session::Config>::ValidatorId>> = vec![];
for signing_group in 0..SIGNING_PARTY_SIZE {
let current_subgroup = SigningGroups::<T>::get(signing_group as u8).unwrap();
current_subgroups.push(current_subgroup)
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need to update the benches in this case?

Copy link
Member Author

Choose a reason for hiding this comment

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

2 reasons, one is we test events in benchmarks but the second and worse reason is that john wrote these tests in python and the rust test is gone, imma rewrite the test in rust but that I wanna get this in fast to fix testnet things so made an issue #620

pallets/staking/src/lib.rs Outdated Show resolved Hide resolved
@HCastano HCastano changed the title Add validator subgroup Roated event Add ValidatorSubgroupRotated event Feb 2, 2024
JesseAbram and others added 2 commits February 2, 2024 09:38
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
CHANGELOG.md Outdated
@@ -83,6 +83,7 @@ algorithms are also supported.
- Add --version flag and about field to TSS ([#590](https://github.com/entropyxyz/entropy-core/pull/590/))
- Program config storage ([#593](https://github.com/entropyxyz/entropy-core/pull/593))
- Add a hashes endpoint ([#600](https://github.com/entropyxyz/entropy-core/pull/600))
- Add ValidatorSubgroupRotated event ([#618](https://github.com/entropyxyz/entropy-core/pull/618))
Copy link
Collaborator

Choose a reason for hiding this comment

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

@JesseAbram this needs to go under the [Unreleased] header, no the v0.0.10 one

@HCastano HCastano merged commit 198f8b7 into master Feb 2, 2024
9 of 10 checks passed
@HCastano HCastano deleted the add-validator-subgroup-rotated-event branch February 2, 2024 18:29
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