Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 committed Sep 28, 2024
1 parent d0834cc commit f4b97a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mod/consensus/pkg/cometbft/service/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down

0 comments on commit f4b97a5

Please sign in to comment.