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

PoS: delay slash validator set update when next epoch is done in TM #1582

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

tzemanovic
Copy link
Member

@tzemanovic tzemanovic commented Jun 16, 2023

Based on v0.17.4.

As caught by e.g. https://github.com/anoma/namada/actions/runs/5280174696/jobs/9551903699?pr=1569

When the epoch change conditions are met, we send validator set update to TM, which takes 2 blocks before the change applies. To stay in sync with TM, we delay epoch update by 2 blocks as well. However, when we receive slashable evidence and the validator set update has already been applied but we're not yet on the new epoch, we have to queue up slashed validator removal from validator set by another epoch.

@tzemanovic tzemanovic force-pushed the tomas/slash-validator-delay-set-update branch from 3a58151 to 080f1af Compare June 19, 2023 07:33
tzemanovic added a commit that referenced this pull request Jun 19, 2023
@tzemanovic tzemanovic marked this pull request as ready for review June 19, 2023 07:36
@brentstone brentstone force-pushed the tomas/slash-validator-delay-set-update branch from ace3bae to ece8e6e Compare June 21, 2023 05:23
Copy link
Collaborator

@brentstone brentstone left a comment

Choose a reason for hiding this comment

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

LGTM (pending new CI results based on v0.17.4)

tzemanovic added a commit that referenced this pull request Jun 21, 2023
* tomas/slash-validator-delay-set-update:
  changelog: add #1582
  PoS: delay slash validator set update when next epoch is done in TM
@tzemanovic tzemanovic mentioned this pull request Jun 21, 2023
@brentstone brentstone merged commit 9118a41 into main Jul 3, 2023
@brentstone brentstone deleted the tomas/slash-validator-delay-set-update branch July 3, 2023 16:38
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