Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
This commit is contained in:
parent
a1e7ef0446
commit
6bda2aa061
@ -258,8 +258,7 @@ func (k Keeper) GetBlockConsPubKeyRotationHistory(ctx context.Context) ([]types.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer iterator.Close()
|
||||
|
||||
// iterator would be closed in the CollectValues
|
||||
return indexes.CollectValues(ctx, k.RotationHistory, iterator)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user