public RoundChangeMessageValidator createRoundChangeMessageValidator(
      final long chainHeight, final QbftBlockHeader parentHeader) {

    final Collection<Address> validatorsForHeight =
        validatorProvider.getValidatorsAfterBlock(parentHeader);

    final RoundChangePayloadValidator roundChangePayloadValidator =
        new RoundChangePayloadValidator(validatorsForHeight, chainHeight);

    return new RoundChangeMessageValidator(
        roundChangePayloadValidator,
        BftHelpers.calculateRequiredValidatorQuorum(validatorsForHeight.size()),
        chainHeight,
        validatorsForHeight,
        protocolSchedule);
  }
Create round change message validator.

@param chainHeight the chain height
@param parentHeader the parent header
@return the round change message validator
consensus/qbft-core/src/main/java/org/hyperledger/besu/consensus/qbft/core/validation/MessageValidatorFactory.java