Set SlashingRate to 10% at Rev 5 for backward compatibility
@@ -198,8 +198,8 @@ func (s *chainScore) handleRevisionChange(as state.AccountState, r1, r2 int) err
iconConfig.ConsistentValidationPenaltyMask.Int64()); err != nil {
return err
}
- if err := es.State.SetConsistentValidationPenaltySlashRatio(
- int(iconConfig.ConsistentValidationPenaltySlashRatio.Int64())); err != nil {
+ // 10% slashRatio is hardcoded for backward compatibility
+ if err := es.State.SetConsistentValidationPenaltySlashRatio(10); err != nil {
return err
}
}
