@Override
  protected boolean shouldImportBlock(final Block block) throws InterruptedException {
    if (forksSchedule.getFork(block.getHeader().getNumber()).getValue().getCreateEmptyBlocks()) {
      return true;
    }

    final boolean isEmpty = block.getBody().getTransactions().isEmpty();
    if (isEmpty) {
      LOG.debug("Skipping creating empty block {}", block.toLogString());
      Thread.sleep(WAIT_IN_MS_BETWEEN_EMPTY_BUILD_ATTEMPTS);
    }
    return !isEmpty;
  }
Instantiates a new Clique block miner.

@param blockCreator the block creator
@param protocolSchedule the protocol schedule
@param protocolContext the protocol context
@param observers the observers
@param scheduler the scheduler
@param parentHeader the parent header
@param localAddress the local address
@param forksSchedule the transitions
consensus/clique/src/main/java/org/hyperledger/besu/consensus/clique/blockcreation/CliqueBlockMiner.java