Not update status for banned validators

pull/2623/head
Rongjian Lan 5 years ago
parent 5cd8af2891
commit be91928a3f
  1. 4
      staking/availability/measure.go

@ -215,6 +215,10 @@ func ComputeAndMutateEPOSStatus(
if err != nil {
return err
}
if wrapper.Status == effective.Banned {
utils.Logger().Debug().Msg("Can't update EPoS status on a banned validator")
return nil
}
snapshot, err := bc.ReadValidatorSnapshot(wrapper.Address)
if err != nil {

Loading…
Cancel
Save