public BftProtocolSchedule createProtocolSchedule(
      final GenesisConfigOptions config,
      final ForksSchedule<? extends BftConfigOptions> forksSchedule,
      final boolean isRevertReasonEnabled,
      final BftExtraDataCodec bftExtraDataCodec,
      final EvmConfiguration evmConfiguration,
      final MiningConfiguration miningConfiguration,
      final BadBlockManager badBlockManager,
      final boolean isParallelTxProcessingEnabled,
      final MetricsSystem metricsSystem) {
    final Map<Long, Function<ProtocolSpecBuilder, ProtocolSpecBuilder>> specMap = new HashMap<>();

    forksSchedule
        .getForks()
        .forEach(
            forkSpec ->
                specMap.put(
                    forkSpec.getBlock(),
                    builder -> applyBftChanges(builder, forkSpec.getValue(), bftExtraDataCodec)));

    final ProtocolSpecAdapters specAdapters = new ProtocolSpecAdapters(specMap);

    final ProtocolSchedule protocolSchedule =
        new ProtocolScheduleBuilder(
                config,
                Optional.of(DEFAULT_CHAIN_ID),
                specAdapters,
                isRevertReasonEnabled,
                evmConfiguration,
                miningConfiguration,
                badBlockManager,
                isParallelTxProcessingEnabled,
                metricsSystem)
            .createProtocolSchedule();
    return new BftProtocolSchedule((DefaultProtocolSchedule) protocolSchedule);
  }
Create protocol schedule.

@param config the config
@param forksSchedule the forks schedule
@param isRevertReasonEnabled the is revert reason enabled
@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 metricsSystem A metricSystem instance to be able to expose metrics in the
    underlying calls
@return the protocol schedule
consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/BaseBftProtocolScheduleBuilder.java