diff --git a/mod/consensus/pkg/cometbft/service/abci.go b/mod/consensus/pkg/cometbft/service/abci.go index 88f358de74..5e97b50ba7 100644 --- a/mod/consensus/pkg/cometbft/service/abci.go +++ b/mod/consensus/pkg/cometbft/service/abci.go @@ -111,13 +111,12 @@ func (s *Service[LoggerT]) InitChain( return nil, err } + // check validators if len(resValidators) == 0 { return nil, errors.New( "application init chain handler returned no validators", ) } - - // check validators if len(req.Validators) != len(resValidators) { return nil, fmt.Errorf( "len(RequestInitChain.Validators) != len(GenesisValidators) (%d != %d)",