public Optional<Difficulty> totalDifficulty() {
    return Optional.ofNullable(status().totalDifficulty);
  }
Return The total difficulty of the head of the associated node's local blockchain.

@return The total difficulty of the head of the associated node's local blockchain.
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/messages/StatusMessage.java