From 92ddbf7dc33de110e5de2fc351c0c0d823274466 Mon Sep 17 00:00:00 2001 From: Damian Nolan Date: Wed, 4 Dec 2024 16:15:56 +0100 Subject: [PATCH] fix(baseapp): sort res.Validators before comparing in InitChain (#22757) --- baseapp/abci.go | 1 + 1 file changed, 1 insertion(+) diff --git a/baseapp/abci.go b/baseapp/abci.go index 31d39d87acba..491c40ae5a6e 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -121,6 +121,7 @@ func (app *BaseApp) InitChain(req *abci.InitChainRequest) (*abci.InitChainRespon } sort.Sort(abcitypes.ValidatorUpdates(req.Validators)) + sort.Sort(abcitypes.ValidatorUpdates(res.Validators)) for i := range res.Validators { if !proto.Equal(&res.Validators[i], &req.Validators[i]) {