Skip to content

Commit 72eb1c9

Browse files
committed
fix view snapshot
1 parent 24bcc77 commit 72eb1c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action/protocol/staking/viewdata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (v *viewData) Snapshot() int {
108108
wrapped := v.contractsStake.Wrap()
109109
v.snapshots = append(v.snapshots, Snapshot{
110110
size: v.candCenter.size,
111-
changes: v.candCenter.change.size(),
111+
changes: len(v.candCenter.change.candidates),
112112
amount: new(big.Int).Set(v.bucketPool.total.amount),
113113
count: v.bucketPool.total.count,
114114
contractsStake: v.contractsStake,

0 commit comments

Comments
 (0)