@Override
  public BigInteger nextDifficulty(final long time, final BlockHeader parent) {

    final Address nextProposer = CliqueHelpers.getProposerForBlockAfter(parent);
    return nextProposer.equals(localAddress) ? IN_TURN_DIFFICULTY : OUT_OF_TURN_DIFFICULTY;
  }
Instantiates a new Clique difficulty calculator.

@param localAddress the local address
consensus/clique/src/main/java/org/hyperledger/besu/consensus/clique/CliqueDifficultyCalculator.java