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 PoS slashing order #1246

Merged
merged 3 commits into from
Apr 13, 2023
Merged

fix PoS slashing order #1246

merged 3 commits into from
Apr 13, 2023

Conversation

tzemanovic
Copy link
Member

@tzemanovic tzemanovic commented Mar 23, 2023

based on 0.14.2

fixes #1245

The failure (before the fix) can be reproduced with:

scripts/repeat-e2e-test.sh 20 e2e::ledger_tests::double_signing_gets_slashed

It's a lot easier to trigger with min_num_of_blocks = 2 set in genesis/e2e-tests-single-node.toml

The helper script is being added in this PR.

@tzemanovic tzemanovic marked this pull request as draft March 23, 2023 10:18
@tzemanovic tzemanovic marked this pull request as ready for review March 24, 2023 09:51
@tzemanovic
Copy link
Member Author

the failed test is now from the other issue #1247

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

tzemanovic added a commit that referenced this pull request Mar 30, 2023
* tomas/fix-pos-slashing:
  changelog: add #1246
  app/ledger/finalize_block: slash after copying of validator sets
  scripts: add a helper to repeat e2e test
tzemanovic added a commit that referenced this pull request Apr 12, 2023
* tomas/fix-pos-slashing:
  changelog: add #1246
  app/ledger/finalize_block: slash after copying of validator sets
  scripts: add a helper to repeat e2e test
@tzemanovic tzemanovic mentioned this pull request Apr 12, 2023
@juped juped merged commit cb8c022 into main Apr 13, 2023
@juped juped deleted the tomas/fix-pos-slashing branch April 13, 2023 06:07
bengtlofgren pushed a commit that referenced this pull request May 11, 2023
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.

PoS: slashing applied at a new epoch causes a crash
3 participants