Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Jun 12, 2023
1 parent c9bf93b commit 66806cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action/protocol/staking/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 66806cf

Please sign in to comment.