@Override
  protected BlockHeaderValidator.Builder createBlockHeaderRuleset(
      final BftConfigOptions config, final FeeMarket feeMarket) {
    final Optional<BaseFeeMarket> baseFeeMarket =
        Optional.of(feeMarket).filter(FeeMarket::implementsBaseFee).map(BaseFeeMarket.class::cast);

    return IbftBlockHeaderValidationRulesetFactory.blockHeaderValidator(
        config.getBlockPeriodMilliseconds() > 0
            ? Duration.ofMillis(config.getBlockPeriodMilliseconds())
            : Duration.ofSeconds(config.getBlockPeriodSeconds()),
        baseFeeMarket);
  }
Create protocol schedule.

@param config the config
@param forksSchedule the forks schedule
@param bftExtraDataCodec the bft extra data codec
@param evmConfiguration the evm configuration
@param miningConfiguration the mining parameters
@param badBlockManager the cache to use to keep invalid blocks
@param isParallelTxProcessingEnabled indicates whether parallel transaction is enabled.
@param metricsSystem A metricSystem instance to be able to expose metrics in the underlying
    calls
@return the protocol schedule
consensus/ibft/src/main/java/org/hyperledger/besu/consensus/ibft/IbftProtocolScheduleBuilder.java