Skip to content

Commit

Permalink
fixup! cubic and general slashing algorithms and transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed May 26, 2023
1 parent 6b65b62 commit 3a0d4af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/src/lib/node/ledger/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,10 @@ where
};
// Disregard evidences that should have already been processed
// at this time
if evidence_epoch + pos_params.unbonding_len < current_epoch {
if evidence_epoch + pos_params.slash_processing_epoch_offset()
- pos_params.cubic_slashing_window_length
<= current_epoch
{
tracing::info!(
"Skipping outdated evidence from epoch \
{evidence_epoch}"
Expand Down

0 comments on commit 3a0d4af

Please sign in to comment.