Skip to content

Commit

Permalink
Set default slash ratio of Non Vote Penalty at Revision 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunsoo Park committed Dec 13, 2021
1 parent f05365d commit 47f5643
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions icon/chainscore_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ func (s *chainScore) handleRevisionChange(as state.AccountState, r1, r2 int) err
if err := scoredb.NewVarDB(as, state.VarEnabledEETypes).Set(EETypesJavaAndPython); err != nil {
return err
}
}

// Set slash ratio of Non Vote Penalty
if r1 < icmodule.RevisionICON2R3 && r2 >= icmodule.RevisionICON2R3 {
iconConfig := s.loadIconConfig()
if err := es.State.SetNonvotedPenaltySlashRatio(int(iconConfig.NonVotePenaltySlashRatio.Int64())); err != nil {
return err
Expand Down

0 comments on commit 47f5643

Please sign in to comment.