Skip to content

Commit 6eb2c57

Browse files
committed
address comment
1 parent 8bb7b97 commit 6eb2c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemcontractindex/stakingindex/voteview.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ func NewVoteView(
5050
height: height,
5151
cur: cur,
5252
processorBuilder: processorBuilder,
53-
store: newBucketStore(indexer),
5453
calculateVoteWeightFn: fn,
5554
}
5655
}
@@ -148,6 +147,7 @@ func (s *voteView) CandidateStakeVotes(ctx context.Context, candidate address.Ad
148147
func (s *voteView) CreatePreStates(ctx context.Context) error {
149148
blkCtx := protocol.MustGetBlockCtx(ctx)
150149
s.height = blkCtx.BlockHeight
150+
s.store = newBucketStore(s.indexer)
151151
return nil
152152
}
153153

0 commit comments

Comments
 (0)