From 8c76c40dfb4356c76a9e61c9869d910fe4dbfa35 Mon Sep 17 00:00:00 2001 From: Damian Nolan Date: Wed, 4 Dec 2024 13:50:34 +0100 Subject: [PATCH] fix: sort res.Validators before comparing in InitChain --- 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]) {