Skip to content

Commit

Permalink
fix(runtime/v2): Reset validatorUpdates after each block (cosmos#20865)
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuvubk authored Jul 4, 2024
1 parent 1bbb499 commit 51d33ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/v2/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,11 @@ func (m *MM[T]) EndBlock() (
}
}

return validatorUpdates, nil
// Reset validatorUpdates
res := validatorUpdates
validatorUpdates = []appmodulev2.ValidatorUpdate{}

return res, nil
}

return endBlockFunc, valUpdateFunc
Expand Down

0 comments on commit 51d33ad

Please sign in to comment.