File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,15 @@ func (k Keeper) DeleteDeprecatedValidatorMissedBlockBitArray(ctx sdk.Context, it
123
123
return
124
124
}
125
125
126
+ // Iterate over all the validator signing infos and delete the deprecated missed block bit arrays
126
127
valSignInfoIter := sdk .KVStorePrefixIterator (store , types .ValidatorSigningInfoKeyPrefix )
127
128
defer valSignInfoIter .Close ()
128
129
129
130
iterationCounter := 0
130
131
for ; valSignInfoIter .Valid (); valSignInfoIter .Next () {
131
132
address := types .ValidatorSigningInfoAddress (valSignInfoIter .Key ())
132
133
133
- // created anonymous function to scope defer statement
134
+ // Creat anonymous function to scope defer statement
134
135
func () {
135
136
iter := storetypes .KVStorePrefixIterator (store , v4 .DeprecatedValidatorMissedBlockBitArrayPrefixKey (address ))
136
137
defer iter .Close ()
@@ -151,7 +152,7 @@ func (k Keeper) DeleteDeprecatedValidatorMissedBlockBitArray(ctx sdk.Context, it
151
152
152
153
ctx .Logger ().Info ("Deleted deprecated missed block bit arrays" , "count" , iterationCounter )
153
154
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)
155
156
if iterationCounter == 0 {
156
157
store .Delete (types .IsPruningKey )
157
158
}
You can’t perform that action at this time.
0 commit comments