Skip to content

Commit e60b723

Browse files
committed
comment update
1 parent fbf64e6 commit e60b723

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x/slashing/keeper/keeper.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,15 @@ func (k Keeper) DeleteDeprecatedValidatorMissedBlockBitArray(ctx sdk.Context, it
123123
return
124124
}
125125

126+
// Iterate over all the validator signing infos and delete the deprecated missed block bit arrays
126127
valSignInfoIter := sdk.KVStorePrefixIterator(store, types.ValidatorSigningInfoKeyPrefix)
127128
defer valSignInfoIter.Close()
128129

129130
iterationCounter := 0
130131
for ; valSignInfoIter.Valid(); valSignInfoIter.Next() {
131132
address := types.ValidatorSigningInfoAddress(valSignInfoIter.Key())
132133

133-
// created anonymous function to scope defer statement
134+
// Creat anonymous function to scope defer statement
134135
func() {
135136
iter := storetypes.KVStorePrefixIterator(store, v4.DeprecatedValidatorMissedBlockBitArrayPrefixKey(address))
136137
defer iter.Close()
@@ -151,7 +152,7 @@ func (k Keeper) DeleteDeprecatedValidatorMissedBlockBitArray(ctx sdk.Context, it
151152

152153
ctx.Logger().Info("Deleted deprecated missed block bit arrays", "count", iterationCounter)
153154

154-
// if we have deleted all the deprecated missed block bit arrays, we can delete the pruning key (setting to nil)
155+
// If we have deleted all the deprecated missed block bit arrays, we can delete the pruning key (set to nil)
155156
if iterationCounter == 0 {
156157
store.Delete(types.IsPruningKey)
157158
}

0 commit comments

Comments
 (0)