Skip to content

Conversation

hweawer
Copy link
Contributor

@hweawer hweawer commented Feb 26, 2025

What

Change calculation of predicted midterm penalty.

Why

At the moment we are calculating predicted midterm penalty based on an effective_balance of the validator. This calculations based on a ref_slot effective_balance. What we want to do instead is to calculate it based on slashings from the state as per spec. This will provide more accurate midterm slashing predictions.

How

We are predicting the penalty in future, so we want to cut the epochs which will be replaced, by the time chain reach midterm slashing epoch. This is what _cut_slashings does

@hweawer hweawer self-assigned this Feb 26, 2025
@hweawer hweawer requested a review from F4ever February 28, 2025 08:33
@F4ever F4ever merged commit 14e2836 into develop Feb 28, 2025
8 checks passed
@F4ever F4ever deleted the calculate-midterm-penalty-based-on-slashings-vector-in-state branch April 15, 2025 02:20
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