public boolean isLocalNodeValidator() {
    return getValidators().contains(localAddress);
  }
Is local node validator.

@return true if the local node is a validator, false otherwise
consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/statemachine/BftFinalState.java