Skip to content

Commit

Permalink
[chainservice] build contract staking indexer only when staking proto…
Browse files Browse the repository at this point in the history
…col enabled (#3886)
  • Loading branch information
envestcc committed Aug 1, 2023
1 parent 789336a commit 6625a4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chainservice/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ func (builder *Builder) buildSGDRegistry(forTest bool) error {
}

func (builder *Builder) buildContractStakingIndexer(forTest bool) error {
if !builder.cfg.Chain.EnableStakingProtocol {
return nil
}
if builder.cs.contractStakingIndexer != nil {
return nil
}
Expand Down

0 comments on commit 6625a4c

Please sign in to comment.