public Optional<BigInteger> getDifficulty() {
    return difficulty;
  }
Gets the difficulty.

@return the optional difficulty
plugin-api/src/main/java/org/hyperledger/besu/plugin/data/BlockOverrides.java