fix(runtime/v2): Reset validatorUpdates after each block (#20865)

This commit is contained in:
Hieu Vu
2024-07-04 05:44:19 +00:00
committed by GitHub
parent 1bbb499cdf
commit 51d33ad6d4
+5 -1
View File
@@ -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