private void importBlock(final Block block) {
    final BlockImporter importer =
        controller.getProtocolSchedule().getByBlockHeader(block.getHeader()).getBlockImporter();

    final BlockImportResult importResult =
        importer.importBlock(controller.getProtocolContext(), block, HeaderValidationMode.NONE);
    if (importResult.isImported()) {
      LOG.info(
          "Successfully created and imported block at height {} ({})",
          block.getHeader().getNumber(),
          block.getHash());
    } else {
      throw new IllegalStateException(
          "Newly created block " + block.getHeader().getNumber() + " failed validation.");
    }
  }
Import chain.

@param chainJson the chain json
@throws IOException the io exception
app/src/main/java/org/hyperledger/besu/chainimport/JsonBlockImporter.java