@Override
  public boolean setHead(final BlockHeader blockHeader, final BlockBody blockBody) {
    final BlockImporter blockImporter =
        protocolSchedule
            .getByBlockHeader((org.hyperledger.besu.ethereum.core.BlockHeader) blockHeader)
            .getBlockImporter();
    return blockImporter
        .importBlock(
            protocolContext,
            new Block(
                (org.hyperledger.besu.ethereum.core.BlockHeader) blockHeader,
                (org.hyperledger.besu.ethereum.core.BlockBody) blockBody),
            HeaderValidationMode.SKIP_DETACHED)
        .isImported();
  }
Constructor for SynchronizationServiceImpl.

@param synchronizer synchronizer
@param protocolContext protocol context
@param protocolSchedule protocol schedule
@param syncState sync state
@param worldStateArchive world state archive
app/src/main/java/org/hyperledger/besu/services/SynchronizationServiceImpl.java