diff --git a/action/protocol/staking/protocol.go b/action/protocol/staking/protocol.go index df7b112513..bdba7a9dfb 100644 --- a/action/protocol/staking/protocol.go +++ b/action/protocol/staking/protocol.go @@ -475,7 +475,7 @@ func (p *Protocol) ActiveCandidates(ctx context.Context, sr protocol.StateReader list := c.AllCandidates() cand := make(CandidateList, 0, len(list)) for i := range list { - if p.contractStakingIndexer != nil && ok && featureCtx.AddContractStakingVotes { + if ok && p.contractStakingIndexer != nil && featureCtx.AddContractStakingVotes { list[i].Votes.Add(list[i].Votes, p.contractStakingIndexer.CandidateVotes(list[i].Owner)) } if list[i].SelfStake.Cmp(p.config.RegistrationConsts.MinSelfStake) >= 0 {