public void logTransitionChange(final BlockHeader parentHeader) {
    final ForkSpec<QbftConfigOptions> currentForkSpec =
        forksSchedule.getFork(parentHeader.getNumber());
    final ForkSpec<QbftConfigOptions> nextForkSpec =
        forksSchedule.getFork(parentHeader.getNumber() + 1L);

    final QbftConfigOptions currentConfigOptions = currentForkSpec.getValue();
    final QbftConfigOptions nextConfigOptions = nextForkSpec.getValue();

    if (hasChangedConfig(currentConfigOptions, nextConfigOptions)) {
      msgConsumer.accept(
          String.format(
              "Transitioning validator selection mode from %s to %s",
              parseConfigToLog(currentConfigOptions), parseConfigToLog(nextConfigOptions)));
    }
  }
Log transition change.

@param parentHeader the parent header
consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/validator/ValidatorModeTransitionLogger.java