From 1bae7ea8a01473181b51f6035348e29d365b2b80 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Fri, 16 Aug 2024 20:35:07 +0200 Subject: [PATCH] deterministic manager --- runtime/v2/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/v2/manager.go b/runtime/v2/manager.go index d6c015b3057d..7b8d555f21df 100644 --- a/runtime/v2/manager.go +++ b/runtime/v2/manager.go @@ -42,7 +42,7 @@ func NewModuleManager[T transaction.Tx]( modules map[string]appmodulev2.AppModule, ) *MM[T] { // good defaults for the module manager order - modulesName := slices.Collect(maps.Keys(modules)) + modulesName := slices.Sorted(maps.Keys(modules)) if len(config.PreBlockers) == 0 { config.PreBlockers = modulesName }