fix(runtime/v2): Reset validatorUpdates after each block (#20865)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user